Loading llvm/lib/Support/TimeProfiler.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ struct Entry { }; struct TimeTraceProfiler { TimeTraceProfiler() { TimeTraceProfiler(unsigned TimeTraceGranularity = 0) : TimeTraceGranularity(TimeTraceGranularity) { StartTime = steady_clock::now(); } Loading Loading @@ -188,8 +189,7 @@ struct TimeTraceProfiler { void timeTraceProfilerInitialize(unsigned TimeTraceGranularity) { assert(TimeTraceProfilerInstance == nullptr && "Profiler should not be initialized"); TimeTraceProfilerInstance = new TimeTraceProfiler(); TimeTraceProfilerInstance->TimeTraceGranularity = TimeTraceGranularity; TimeTraceProfilerInstance = new TimeTraceProfiler(TimeTraceGranularity); } void timeTraceProfilerCleanup() { Loading Loading
llvm/lib/Support/TimeProfiler.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ struct Entry { }; struct TimeTraceProfiler { TimeTraceProfiler() { TimeTraceProfiler(unsigned TimeTraceGranularity = 0) : TimeTraceGranularity(TimeTraceGranularity) { StartTime = steady_clock::now(); } Loading Loading @@ -188,8 +189,7 @@ struct TimeTraceProfiler { void timeTraceProfilerInitialize(unsigned TimeTraceGranularity) { assert(TimeTraceProfilerInstance == nullptr && "Profiler should not be initialized"); TimeTraceProfilerInstance = new TimeTraceProfiler(); TimeTraceProfilerInstance->TimeTraceGranularity = TimeTraceGranularity; TimeTraceProfilerInstance = new TimeTraceProfiler(TimeTraceGranularity); } void timeTraceProfilerCleanup() { Loading