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

Method printReport

src/utils/Profiler.cpp:222–235  ·  view source on GitHub ↗

Print the report of the profiler in a given output stream

Source from the content-addressed store, hash-verified

220
221// Print the report of the profiler in a given output stream
222void Profiler::printReport() {
223
224 // For each destination
225 for (uint i=0; i < mNbDestinations; i++) {
226
227 ProfileNodeIterator* iterator = Profiler::getIterator();
228
229 // Recursively print the report of each node of the profiler tree
230 printRecursiveNodeReport(iterator, 0, mDestinations[i]->getOutputStream());
231
232 // Destroy the iterator
233 destroyIterator(iterator);
234 }
235}
236
237// Add a file destination to the profiler
238void Profiler::addFileDestination(const std::string& filePath, Format format) {

Callers 1

~PhysicsWorldMethod · 0.80

Calls 1

getOutputStreamMethod · 0.45

Tested by

no test coverage detected