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

Method startProfilingBlock

src/utils/Profiler.cpp:190–200  ·  view source on GitHub ↗

Method called when we want to start profiling a block of code.

Source from the content-addressed store, hash-verified

188
189// Method called when we want to start profiling a block of code.
190void Profiler::startProfilingBlock(const char* name) {
191
192 // Look for the node in the tree that corresponds to the block of
193 // code to profile
194 if (name != mCurrentNode->getName()) {
195 mCurrentNode = mCurrentNode->findSubNode(name);
196 }
197
198 // Start profile the node
199 mCurrentNode->enterBlockOfCode();
200}
201
202// Method called at the end of the scope where the
203// startProfilingBlock() method has been called.

Callers 1

ProfileSampleMethod · 0.80

Calls 3

findSubNodeMethod · 0.80
enterBlockOfCodeMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected