Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
a9b1c5db
Commit
a9b1c5db
authored
Feb 25, 2013
by
Anna Kogan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --regressions-only=X-FACTOR option
parent
9f15daf0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
summary.py
modules/ts/misc/summary.py
+16
-0
No files found.
modules/ts/misc/summary.py
View file @
a9b1c5db
...
...
@@ -41,6 +41,7 @@ if __name__ == "__main__":
parser
.
add_option
(
""
,
"--show-all"
,
action
=
"store_true"
,
dest
=
"showall"
,
default
=
False
,
help
=
"also include empty and
\"
notrun
\"
lines"
)
parser
.
add_option
(
""
,
"--match"
,
dest
=
"match"
,
default
=
None
)
parser
.
add_option
(
""
,
"--match-replace"
,
dest
=
"match_replace"
,
default
=
""
)
parser
.
add_option
(
""
,
"--regressions-only"
,
dest
=
"regressionsOnly"
,
default
=
None
,
metavar
=
"X-FACTOR"
,
help
=
"show only tests with performance regressions not"
)
(
options
,
args
)
=
parser
.
parse_args
()
options
.
generateHtml
=
detectHtmlOutputType
(
options
.
format
)
...
...
@@ -195,6 +196,18 @@ if __name__ == "__main__":
if
not
needNewRow
:
tbl
.
trimLastRow
()
if
options
.
regressionsOnly
:
for
r
in
reversed
(
range
(
len
(
tbl
.
rows
))):
delete
=
True
i
=
1
for
set
in
metric_sets
:
val
=
tbl
.
rows
[
r
]
.
cells
[
len
(
tbl
.
rows
[
r
]
.
cells
)
-
i
]
.
value
if
val
is
not
None
and
val
<
float
(
options
.
regressionsOnly
):
delete
=
False
i
+=
1
if
(
delete
):
tbl
.
rows
.
pop
(
r
)
# output table
if
options
.
generateHtml
:
if
options
.
format
==
"moinwiki"
:
...
...
@@ -205,3 +218,6 @@ if __name__ == "__main__":
htmlPrintFooter
(
sys
.
stdout
)
else
:
tbl
.
consolePrintTable
(
sys
.
stdout
)
if
options
.
regressionsOnly
:
sys
.
exit
(
len
(
tbl
.
rows
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment