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
7a104d27
Commit
7a104d27
authored
Jun 19, 2013
by
Roman Donchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an option to print available implementation variants.
parent
b581f272
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
ts_perf.cpp
modules/ts/src/ts_perf.cpp
+14
-0
No files found.
modules/ts/src/ts_perf.cpp
View file @
7a104d27
...
...
@@ -646,6 +646,7 @@ void TestBase::Init(const std::vector<std::string> & availableImpls,
"{ |perf_verify_sanity |false |fail tests having no regression data for sanity checks}"
"{ |perf_impl |"
+
available_impls
[
0
]
+
"|the implementation variant of functions under test}"
"{ |perf_list_impls |false |list available implementation variants and exit}"
"{ |perf_run_cpu |false |deprecated, equivalent to --perf_impl=plain}"
#ifdef ANDROID
"{ |perf_time_limit |6.0 |default time limit for a single test (in seconds)}"
...
...
@@ -687,6 +688,19 @@ void TestBase::Init(const std::vector<std::string> & availableImpls,
log_power_checkpoints
=
args
.
get
<
bool
>
(
"perf_log_power_checkpoints"
);
#endif
bool
param_list_impls
=
args
.
get
<
bool
>
(
"perf_list_impls"
);
if
(
param_list_impls
)
{
fputs
(
"Available implementation variants:"
,
stdout
);
for
(
size_t
i
=
0
;
i
<
available_impls
.
size
();
++
i
)
{
putchar
(
' '
);
fputs
(
available_impls
[
i
].
c_str
(),
stdout
);
}
putchar
(
'\n'
);
exit
(
0
);
}
if
(
std
::
find
(
available_impls
.
begin
(),
available_impls
.
end
(),
param_impl
)
==
available_impls
.
end
())
{
printf
(
"No such implementation: %s
\n
"
,
param_impl
.
c_str
());
...
...
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