Represents a profiler context that manages profiling data. More...
Public Member Functions | |
ProfilerContext (bool enabled) | |
Initializes a new instance of the ProfilerContext class. More... | |
ProfilerContextData | CreateReport (int frame, bool isVerified) |
Creates a profiler context report. More... | |
double | GetFrameTimeAverage () |
Gets the average frame time. More... | |
Profiler | GetProfilerForTaskThread (FrameThreadSafe frame) |
Gets the profiler for the specified frame. More... | |
Profiler | GetProfilerForTaskThread (int taskThreadIndex) |
Gets the profiler for the specified task thread index. More... | |
void | Reset () |
Resets the profiler context. More... | |
void | SimulationBegin () |
Begins a simulation. More... | |
void | StoreFrameTime () |
Stores the frame time. More... | |
double | TicksToMS (long ticks) |
Converts ticks to milliseconds. More... | |
Represents a profiler context that manages profiling data.
|
inline |
Initializes a new instance of the ProfilerContext class.
enabled | Indicates whether the profiler is enabled. |
|
inline |
Gets the average frame time.
|
inline |
Begins a simulation.
|
inline |
Resets the profiler context.
|
inline |
Stores the frame time.
|
inline |
Converts ticks to milliseconds.
ticks | The number of ticks. |
|
inline |
Creates a profiler context report.
frame | The frame number. |
isVerified | Indicates whether the report is verified. |
|
inline |
Gets the profiler for the specified task thread index.
taskThreadIndex | The task thread index. |
|
inline |
Gets the profiler for the specified frame.
frame | The frame. |