MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Blast / SampleProfilerEnd

Function SampleProfilerEnd

samples/SampleBase/utils/SampleProfiler.cpp:92–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void SampleProfilerEnd()
93{
94 auto start = steady_clock::now();
95 {
96 if (s_currentNode)
97 {
98 auto& data = s_currentNode->data;
99 data.time += duration_cast<microseconds>(steady_clock::now() - data.start);
100 data.maxTime = data.time > data.maxTime ? data.time : data.maxTime;
101 s_currentNode = s_currentNode->parent;
102 }
103 else
104 {
105 s_beginEndMismatch = true;
106 }
107 }
108 s_overhead += duration_cast<microseconds>(steady_clock::now() - start);
109}
110
111struct SampleProfilerTreeIteratorImpl final : public SampleProfilerTreeIterator
112{

Callers 1

~SampleProfilerScopedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected