![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
Singleton class for managing profiling information. More...
#include <Profiler.h>
Public Member Functions | |
| JPH_OVERRIDE_NEW_DELETE | Profiler () |
| Constructor. More... | |
| void | NextFrame () |
| Increments the frame counter to provide statistics per frame. More... | |
| void | Dump (const string_view &inTag=string_view()) |
| void | AddThread (ProfileThread *inThread) |
| Add a thread to be instrumented. More... | |
| void | RemoveThread (ProfileThread *inThread) |
| Remove a thread from being instrumented. More... | |
Public Member Functions inherited from NonCopyable | |
| NonCopyable ()=default | |
| NonCopyable (const NonCopyable &)=delete | |
| void | operator= (const NonCopyable &)=delete |
Static Public Attributes | |
| static Profiler * | sInstance = nullptr |
| Singleton instance. More... | |
Singleton class for managing profiling information.
|
inline |
Constructor.
| void Profiler::AddThread | ( | ProfileThread * | inThread | ) |
Add a thread to be instrumented.
| void Profiler::Dump | ( | const string_view & | inTag = string_view() | ) |
Dump profiling statistics at the start of the next frame
| inTag | If not empty, this overrides the auto incrementing number in the filename of the dump file |
| void Profiler::NextFrame | ( | ) |
Increments the frame counter to provide statistics per frame.
| void Profiler::RemoveThread | ( | ProfileThread * | inThread | ) |
Remove a thread from being instrumented.
|
static |
Singleton instance.