Represents a profiler that can be used for performance profiling. More...
Classes | |
struct | ProfilerScope |
Represents a disposable profiler scope that automatically starts and ends a profiling section. More... | |
Public Member Functions | |
void | End () |
Ends the current profiling section. More... | |
void | Event (string name) |
Records an event with the specified name. Events are used to mark specific points in time and do not have a duration. More... | |
ProfilerScope | Scope (string name) |
Creates a new profiler scope with the specified name. More... | |
void | Start (string name) |
Starts a profiling section with the specified name. More... | |
Properties | |
bool | IsValid [get] |
Gets a value indicating whether the profiler is valid. If the returned value is false , all profiler calls will be no-ops. More... | |
Represents a profiler that can be used for performance profiling.
|
inline |
Records an event with the specified name. Events are used to mark specific points in time and do not have a duration.
name | The name of the event. |
|
inline |
Starts a profiling section with the specified name.
name | The name of the profiling section. |
|
inline |
Ends the current profiling section.
ProfilerScope Quantum.Profiling.Profiler.Scope | ( | string | name | ) |
Creates a new profiler scope with the specified name.
name | The name of the profiler scope. |
|
get |
Gets a value indicating whether the profiler is valid. If the returned value is false
, all profiler calls will be no-ops.