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
a67a0c76
Commit
a67a0c76
authored
Nov 30, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed logging in perf tests; small bugfix in run.py
parent
a2697b18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
ts_perf.hpp
modules/ts/include/opencv2/ts/ts_perf.hpp
+15
-14
run.py
modules/ts/misc/run.py
+1
-1
No files found.
modules/ts/include/opencv2/ts/ts_perf.hpp
View file @
a67a0c76
...
@@ -8,22 +8,23 @@
...
@@ -8,22 +8,23 @@
#include "tbb/task_scheduler_init.h"
#include "tbb/task_scheduler_init.h"
#endif
#endif
#if defined(ANDROID) && defined(USE_ANDROID_LOGGING)
#if !(defined(LOGD) || defined(LOGI) || defined(LOGW) || defined(LOGE))
#include <android/log.h>
# if defined(ANDROID) && defined(USE_ANDROID_LOGGING)
# include <android/log.h>
#define PERF_TESTS_LOG_TAG "OpenCV_perf"
#define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, PERF_TESTS_LOG_TAG, __VA_ARGS__))
# define PERF_TESTS_LOG_TAG "OpenCV_perf"
#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, PERF_TESTS_LOG_TAG, __VA_ARGS__))
# define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, PERF_TESTS_LOG_TAG, __VA_ARGS__))
#define LOGW(...) ((void)__android_log_print(ANDROID_LOG_WARN, PERF_TESTS_LOG_TAG, __VA_ARGS__))
# define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, PERF_TESTS_LOG_TAG, __VA_ARGS__))
#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, PERF_TESTS_LOG_TAG, __VA_ARGS__))
# define LOGW(...) ((void)__android_log_print(ANDROID_LOG_WARN, PERF_TESTS_LOG_TAG, __VA_ARGS__))
#else
# define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, PERF_TESTS_LOG_TAG, __VA_ARGS__))
#define LOGD(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0)
# else
#define LOGI(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0)
# define LOGD(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0)
#define LOGW(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0)
# define LOGI(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0)
#define LOGE(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0)
# define LOGW(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0)
# define LOGE(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0)
# endif
#endif
#endif
namespace
perf
namespace
perf
{
{
...
...
modules/ts/misc/run.py
View file @
a67a0c76
...
@@ -433,7 +433,7 @@ class RunInfo(object):
...
@@ -433,7 +433,7 @@ class RunInfo(object):
if
len
(
userlog
)
==
0
:
if
len
(
userlog
)
==
0
:
args
.
append
(
"--gtest_output=xml:"
+
logfile
)
args
.
append
(
"--gtest_output=xml:"
+
logfile
)
else
:
else
:
logfile
=
userlog
[
userlog
[
0
]
.
find
(
":"
)
+
1
:]
logfile
=
userlog
[
0
][
userlog
[
0
]
.
find
(
":"
)
+
1
:]
if
self
.
targetos
==
"android"
:
if
self
.
targetos
==
"android"
:
try
:
try
:
...
...
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