MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / printCurrentTimerBranch

Function printCurrentTimerBranch

source/MRMesh/MRTimer.cpp:154–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void printCurrentTimerBranch()
155{
156 Timer t( "Print Timer branch leaf" );
157 const TimeRecord* active = currentRecord;
158 auto& logger = rootTimeRecord.loggerHandle;
159 if ( !logger )
160 return;
161 while ( active )
162 {
163 if ( !active->parent )
164 {
165 logger->info( "Root" );
166 break;
167 }
168 for ( const auto& child : active->parent->children )
169 {
170 if ( &child.second != active )
171 continue;
172 logger->info( child.first );
173 break;
174 }
175 active = active->parent;
176 }
177}
178
179void printTimingTree( double minTimeSec )
180{

Callers 4

launchDefaultViewerFunction · 0.85
crashSignalHandlerFunction · 0.85
logWindowsExceptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected