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

Method addFileDestination

src/utils/Profiler.cpp:238–248  ·  view source on GitHub ↗

Add a file destination to the profiler

Source from the content-addressed store, hash-verified

236
237// Add a file destination to the profiler
238void Profiler::addFileDestination(const std::string& filePath, Format format) {
239
240 if (mNbAllocatedDestinations == mNbDestinations) {
241 allocatedDestinations(mNbAllocatedDestinations * 2);
242 }
243
244 FileDestination* destination = new FileDestination(filePath, format);
245 mDestinations[mNbDestinations] = destination;
246
247 mNbDestinations++;
248}
249
250// Allocate memory for the destinations
251void Profiler::allocatedDestinations(uint nbDestinationsToAllocate) {

Callers 1

createPhysicsWorldMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected