diff options
author | Mateusz Grzeliński <grzelinskimat@gmail.com> | 2020-08-20 11:37:15 +0300 |
---|---|---|
committer | Mateusz Grzeliński <grzelinskimat@gmail.com> | 2020-08-20 11:37:15 +0300 |
commit | e0c1cac5eb39e7b27d9636a4cf7ae1fbfd8e15b4 (patch) | |
tree | 36b6aae72fa8264129835834f0fc624cd38c7c97 | |
parent | 430df0c4b7194050e5a2b6bec58bb0998a8be2ec (diff) |
Clog timeit: use log verbose instead of debugsoc-2020-info-editor
Debug will not be visible in release builds
-rw-r--r-- | source/blender/blenlib/PIL_time_utildefines.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenlib/PIL_time_utildefines.h b/source/blender/blenlib/PIL_time_utildefines.h index 39b6b9dcd74..a7d0c718a8d 100644 --- a/source/blender/blenlib/PIL_time_utildefines.h +++ b/source/blender/blenlib/PIL_time_utildefines.h @@ -131,7 +131,7 @@ #define CLOG_TIMEIT_START(log_ref, level, var) \ { \ double _clog_debug_timeit_##var = PIL_check_seconds_timer(); \ - CLOG_DEBUG(log_ref, level, "time start (" #var ")"); \ + CLOG_VERBOSE(log_ref, level, "time start (" #var ")"); \ { \ (void)0 @@ -142,13 +142,13 @@ #define CLOG_TIMEIT_VALUE_PRINT(log_ref, level, var) \ { \ - CLOG_DEBUG(log_ref, level, "time update (" #var "): %.6f", CLOG_TIMEIT_VALUE(var)); \ + CLOG_VERBOSE(log_ref, level, "time update (" #var "): %.6f", CLOG_TIMEIT_VALUE(var)); \ } \ (void)0 #define CLOG_TIMEIT_END(log_ref, level, var) \ } \ - CLOG_DEBUG(log_ref, level, "time end (" #var "): %.6f", CLOG_TIMEIT_VALUE(var)); \ + CLOG_VERBOSE(log_ref, level, "time end (" #var "): %.6f", CLOG_TIMEIT_VALUE(var)); \ } \ (void)0 @@ -162,7 +162,7 @@ static float _clog_debug_sum_##var = 0.0f; \ static float _clog_debug_num_##var = 0.0f; \ double _clog_debug_timeit_##var = PIL_check_seconds_timer(); \ - CLOG_DEBUG(log_ref, level, "time start (" #var ")"); \ + CLOG_VERBOSE(log_ref, level, "time start (" #var ")"); \ { \ (void)0 @@ -174,8 +174,8 @@ const float _clog_debug_delta_##var = CLOG_TIMEIT_VALUE(var); \ _clog_debug_sum_##var += _clog_debug_delta_##var; \ _clog_debug_num_##var++; \ - CLOG_DEBUG(log_ref, level, "time end (" #var "): %.6f", _clog_debug_delta_##var); \ - CLOG_DEBUG(log_ref, \ + CLOG_VERBOSE(log_ref, level, "time end (" #var "): %.6f", _clog_debug_delta_##var); \ + CLOG_VERBOSE(log_ref, \ level, \ "time averaged (" #var "): %.6f (total: %.6f, in %d runs)", \ (_clog_debug_sum_##var / _clog_debug_num_##var), \ @@ -213,7 +213,7 @@ #define CLOG_TIMEIT_BLOCK_STATS(log_ref, level, id) \ { \ - CLOG_DEBUG(log_ref, level, "%s time (in seconds): %f", #id, _clog_debug_timeit_var_##id); \ + CLOG_VERBOSE(log_ref, level, "%s time (in seconds): %f", #id, _clog_debug_timeit_var_##id); \ } \ (void)0 |