File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ struct Entry {
59
59
};
60
60
61
61
struct TimeTraceProfiler {
62
- TimeTraceProfiler () {
62
+ TimeTraceProfiler (unsigned TimeTraceGranularity = 0 )
63
+ : TimeTraceGranularity(TimeTraceGranularity) {
63
64
StartTime = steady_clock::now ();
64
65
}
65
66
@@ -188,8 +189,7 @@ struct TimeTraceProfiler {
188
189
void timeTraceProfilerInitialize (unsigned TimeTraceGranularity) {
189
190
assert (TimeTraceProfilerInstance == nullptr &&
190
191
" Profiler should not be initialized" );
191
- TimeTraceProfilerInstance = new TimeTraceProfiler ();
192
- TimeTraceProfilerInstance->TimeTraceGranularity = TimeTraceGranularity;
192
+ TimeTraceProfilerInstance = new TimeTraceProfiler (TimeTraceGranularity);
193
193
}
194
194
195
195
void timeTraceProfilerCleanup () {
You can’t perform that action at this time.
0 commit comments