class
ProfilerCPU
Provides various performance measuring methods.
Public
Constructors
ProfilerCPU
Methods
~ProfilerCPU
BeginThread
Registers a new thread we will be doing sampling in.
This needs to be called before any beginSample*
endSample*
calls are made in that thread.
- name
- Name that will allow you to more easily identify the thread.
EndThread
Ends sampling for the current thread.
No beginSample*
endSample* calls after this point.
BeginSample
Begins sample measurement.
Must be followed by endSample().
- name
- Unique name for the sample you can later use to find the sampling data.
EndSample
Ends sample measurement.
- name
- Unique name for the sample.
BeginSamplePrecise
Begins precise sample measurement.
Must be followed by endSamplePrecise().
- name
- Unique name for the sample you can later use to find the sampling data.
EndSamplePrecise
Ends precise sample measurement.
- name
- Unique name for the sample.
Reset
Clears all sampling data, and ends any unfinished sampling blocks.
GenerateReport
Generates a report from all previously sampled data.
staticInstance
Returns a reference to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticInstancePtr
Returns a pointer to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticShutDown
Shuts down this module and frees any resources it is using.
staticIsStarted
Query if the module has been started.
Protected
Methods
~Module<T>
OnStartUp
Override if you want your module to be notified once it has been constructed and started.
OnShutDown
Override if you want your module to be notified just before it is deleted.
staticInstanceInternal
Returns a singleton instance of this module.
Private
Methods
EstimateTimerOverhead
Calculates overhead that the timing and sampling methods themselves introduce so we might get more accurate measurements when creating reports.