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

Method addStreamDestination

src/utils/Profiler.cpp:263–273  ·  view source on GitHub ↗

Add a stream destination to the profiler

Source from the content-addressed store, hash-verified

261
262// Add a stream destination to the profiler
263void Profiler::addStreamDestination(std::ostream& outputStream, Format format) {
264
265 if (mNbAllocatedDestinations == mNbDestinations) {
266 allocatedDestinations(mNbAllocatedDestinations * 2);
267 }
268
269 StreamDestination* destination = new StreamDestination(outputStream, format);
270 mDestinations[mNbDestinations] = destination;
271
272 mNbDestinations++;
273}
274
275// Recursively print the report of a given node of the profiler tree
276void Profiler::printRecursiveNodeReport(ProfileNodeIterator* iterator,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected