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

Method enterBlockOfCode

src/utils/Profiler.cpp:74–86  ·  view source on GitHub ↗

Called when we enter the block of code corresponding to this profile node

Source from the content-addressed store, hash-verified

72
73// Called when we enter the block of code corresponding to this profile node
74void ProfileNode::enterBlockOfCode() {
75 mNbTotalCalls++;
76
77 // If the current code is not called recursively
78 if (mRecursionCounter == 0) {
79
80 // Get the current system time to initialize the starting time of
81 // the profiling of the current block of code
82 mStartingTime = clock::now();
83 }
84
85 mRecursionCounter++;
86}
87
88// Called when we exit the block of code corresponding to this profile node
89bool ProfileNode::exitBlockOfCode() {

Callers 2

startProfilingBlockMethod · 0.80
resetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected