Create and return a new profiler Note that you need to use a different profiler for each PhysicsWorld.
| 813 | // Create and return a new profiler |
| 814 | /// Note that you need to use a different profiler for each PhysicsWorld. |
| 815 | Profiler* 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 |
| 825 | void PhysicsCommon::destroyProfiler(Profiler* profiler) { |