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
3271e395
Commit
3271e395
authored
Jan 10, 2013
by
Anna Kogan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved console output
parent
0d7ce141
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
perf_tests_timing.py
modules/ts/misc/perf_tests_timing.py
+12
-3
No files found.
modules/ts/misc/perf_tests_timing.py
View file @
3271e395
...
...
@@ -5,6 +5,7 @@ from table_formatter import *
from
optparse
import
OptionParser
from
operator
import
itemgetter
,
attrgetter
from
summary
import
getSetName
,
alphanum_keyselector
import
re
if
__name__
==
"__main__"
:
usage
=
"
%
prog <log_name>.xml [...]"
...
...
@@ -21,7 +22,8 @@ if __name__ == "__main__":
options
.
generateHtml
=
detectHtmlOutputType
(
options
.
format
)
file
=
os
.
path
.
abspath
(
args
[
0
])
input_file
=
args
[
0
]
file
=
os
.
path
.
abspath
(
input_file
)
if
not
os
.
path
.
isfile
(
file
):
sys
.
stderr
.
write
(
"IOError reading
\"
"
+
file
+
"
\"
- "
+
str
(
err
)
+
os
.
linesep
)
parser
.
print_help
()
...
...
@@ -108,4 +110,11 @@ if __name__ == "__main__":
tbl
.
htmlPrintTable
(
sys
.
stdout
)
htmlPrintFooter
(
sys
.
stdout
)
else
:
tbl
.
consolePrintTable
(
sys
.
stdout
)
\ No newline at end of file
input_file
=
re
.
sub
(
r'^[\.\/]*'
,
''
,
input_file
)
find_module_name
=
re
.
search
(
r'([^_]*)'
,
input_file
)
module_name
=
find_module_name
.
group
(
0
)
splitter
=
15
*
'*'
print
'
\n
%
s
\n
%
s
\n
%
s
\n
'
%
(
splitter
,
module_name
,
splitter
)
tbl
.
consolePrintTable
(
sys
.
stdout
)
print
4
*
'
\n
'
\ No newline at end of file
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