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

Method createProfiler

src/engine/PhysicsCommon.cpp:815–822  ·  view source on GitHub ↗

Create and return a new profiler Note that you need to use a different profiler for each PhysicsWorld.

Source from the content-addressed store, hash-verified

813// Create and return a new profiler
814/// Note that you need to use a different profiler for each PhysicsWorld.
815Profiler* PhysicsCommon::createProfiler() {
816
817 Profiler* profiler = new (mMemoryManager.allocate(MemoryManager::AllocationType::Pool, sizeof(Profiler))) Profiler();
818
819 mProfilers.add(profiler);
820
821 return profiler;
822}
823
824// Destroy a profiler
825void PhysicsCommon::destroyProfiler(Profiler* profiler) {

Callers

nothing calls this directly

Calls 2

allocateMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected