File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,13 @@ static int64 getTimestamp()
72
72
return (int64)((t - g_zero_timestamp) * tick_to_ns);
73
73
}
74
74
75
- // TODO lazy configuration flags
76
- static bool param_traceEnable = utils::getConfigurationParameterBool(" OPENCV_TRACE" , false );
75
+ static bool getParameterTraceEnable ()
76
+ {
77
+ static bool param_traceEnable = utils::getConfigurationParameterBool (" OPENCV_TRACE" , false );
78
+ return param_traceEnable;
79
+ }
77
80
81
+ // TODO lazy configuration flags
78
82
static int param_maxRegionDepthOpenCV = (int )utils::getConfigurationParameterSizeT(" OPENCV_TRACE_DEPTH_OPENCV" , 1 );
79
83
static int param_maxRegionChildrenOpenCV = (int )utils::getConfigurationParameterSizeT(" OPENCV_TRACE_MAX_CHILDREN_OPENCV" , 1000 );
80
84
static int param_maxRegionChildren = (int )utils::getConfigurationParameterSizeT(" OPENCV_TRACE_MAX_CHILDREN" , 10000 );
@@ -841,7 +845,7 @@ TraceManager::TraceManager()
841
845
CV_LOG (" TraceManager ctor: " << (void *)this );
842
846
843
847
CV_LOG (" TraceManager configure()" );
844
- activated = param_traceEnable ;
848
+ activated = getParameterTraceEnable () ;
845
849
846
850
if (activated)
847
851
trace_storage.reset (new SyncTraceStorage (std::string (param_traceLocation) + " .txt" ));
You can’t perform that action at this time.
0 commit comments