MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / Start_Profile

Method Start_Profile

examples/Utils/b3Quickprof.cpp:230–238  ·  view source on GitHub ↗

* b3ProfileManager::Start_Profile -- Begin a named profile * * * * Steps one level deeper into the tree, if a child already exists with the specified name * * then it accumulates the profiling; otherwise a new child node is added to the profile tree. * *

Source from the content-addressed store, hash-verified

228 * the profiling code for efficiency. *
229 *=============================================================================================*/
230void b3ProfileManager::Start_Profile(const char* name)
231{
232 if (name != CurrentNode->Get_Name())
233 {
234 CurrentNode = CurrentNode->Get_Sub_Node(name);
235 }
236
237 CurrentNode->Call();
238}
239
240/***********************************************************************************************
241 * b3ProfileManager::Stop_Profile -- Stop timing and record the results. *

Callers

nothing calls this directly

Calls 3

Get_NameMethod · 0.45
Get_Sub_NodeMethod · 0.45
CallMethod · 0.45

Tested by

no test coverage detected