MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / stopProfilingBlock

Method stopProfilingBlock

src/utils/Profiler.cpp:204–211  ·  view source on GitHub ↗

Method called at the end of the scope where the startProfilingBlock() method has been called.

Source from the content-addressed store, hash-verified

202// Method called at the end of the scope where the
203// startProfilingBlock() method has been called.
204void Profiler::stopProfilingBlock() {
205
206 // Go to the parent node unless if the current block
207 // of code is recursing
208 if (mCurrentNode->exitBlockOfCode()) {
209 mCurrentNode = mCurrentNode->getParentNode();
210 }
211}
212
213// Reset the timing data of the profiler (but not the profiler tree structure)
214void Profiler::reset() {

Callers 1

~ProfileSampleMethod · 0.80

Calls 2

exitBlockOfCodeMethod · 0.80
getParentNodeMethod · 0.80

Tested by

no test coverage detected