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

Method deleteProfiler

src/engine/PhysicsCommon.cpp:833–840  ·  view source on GitHub ↗

Delete a profiler

Source from the content-addressed store, hash-verified

831
832// Delete a profiler
833void PhysicsCommon::deleteProfiler(Profiler* profiler) {
834
835 // Call the destructor of the profiler
836 profiler->~Profiler();
837
838 // Release allocated memory
839 mMemoryManager.release(MemoryManager::AllocationType::Pool, profiler, sizeof(Profiler));
840}
841#endif

Callers

nothing calls this directly

Calls 2

~ProfilerMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected