|
|
|
@ -8,22 +8,23 @@ |
|
|
|
|
#include "tbb/task_scheduler_init.h" |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#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 LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, PERF_TESTS_LOG_TAG, __VA_ARGS__)) |
|
|
|
|
#define LOGW(...) ((void)__android_log_print(ANDROID_LOG_WARN, PERF_TESTS_LOG_TAG, __VA_ARGS__)) |
|
|
|
|
#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, PERF_TESTS_LOG_TAG, __VA_ARGS__)) |
|
|
|
|
#else |
|
|
|
|
#define LOGD(_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 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) |
|
|
|
|
#if !(defined(LOGD) || defined(LOGI) || defined(LOGW) || defined(LOGE)) |
|
|
|
|
# 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 LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, PERF_TESTS_LOG_TAG, __VA_ARGS__)) |
|
|
|
|
# define LOGW(...) ((void)__android_log_print(ANDROID_LOG_WARN, PERF_TESTS_LOG_TAG, __VA_ARGS__)) |
|
|
|
|
# define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, PERF_TESTS_LOG_TAG, __VA_ARGS__)) |
|
|
|
|
# else |
|
|
|
|
# define LOGD(_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 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace perf |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|