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
376cd8f8
Commit
376cd8f8
authored
Oct 06, 2013
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: added simple collection strategy
parent
c5afaa4e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
main.cpp
modules/ocl/perf/main.cpp
+2
-0
ts_perf.hpp
modules/ts/include/opencv2/ts/ts_perf.hpp
+14
-0
ts_perf.cpp
modules/ts/src/ts_perf.cpp
+0
-0
No files found.
modules/ocl/perf/main.cpp
View file @
376cd8f8
...
...
@@ -67,5 +67,7 @@ static const char * impls[] =
int
main
(
int
argc
,
char
**
argv
)
{
::
perf
::
TestBase
::
setPerformanceStrategy
(
::
perf
::
PERF_STRATEGY_SIMPLE
);
CV_PERF_TEST_MAIN_INTERNALS
(
ocl
,
impls
,
dumpOpenCLDevice
())
}
modules/ts/include/opencv2/ts/ts_perf.hpp
View file @
376cd8f8
...
...
@@ -247,9 +247,20 @@ typedef struct CV_EXPORTS performance_metrics
};
performance_metrics
();
void
clear
();
}
performance_metrics
;
/*****************************************************************************************\
* Strategy for performance measuring *
\*****************************************************************************************/
enum
PERF_STRATEGY
{
PERF_STRATEGY_BASE
=
0
,
PERF_STRATEGY_SIMPLE
=
1
,
};
/*****************************************************************************************\
* Base fixture for performance tests *
\*****************************************************************************************/
...
...
@@ -265,6 +276,9 @@ public:
static
std
::
string
getDataPath
(
const
std
::
string
&
relativePath
);
static
std
::
string
getSelectedImpl
();
static
enum
PERF_STRATEGY
getPerformanceStrategy
();
static
enum
PERF_STRATEGY
setPerformanceStrategy
(
enum
PERF_STRATEGY
strategy
);
protected
:
virtual
void
PerfTestBody
()
=
0
;
...
...
modules/ts/src/ts_perf.cpp
View file @
376cd8f8
This diff is collapsed.
Click to expand it.
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