Given an identifier to identify a section of code tha will measure simulation time based on that section.
| DtPerformanceMonitor::DtPerformanceMonitor |
( |
| ) |
|
| static int DtPerformanceMonitor::AddProfileContextString |
( |
int |
context, |
|
|
const char * |
str |
|
) |
| |
|
inlinestatic |
| static std::string DtPerformanceMonitor::ProfileContextString |
( |
int |
context | ) |
|
|
inlinestatic |
| virtual void DtPerformanceMonitor::pause |
( |
| ) |
|
|
virtual |
When paused, will not add samples to the.
- See Also
- paused()
| virtual void DtPerformanceMonitor::resume |
( |
| ) |
|
|
virtual |
| virtual bool DtPerformanceMonitor::isPaused |
( |
| ) |
const |
|
virtual |
When paused, will not add samples to the.
| virtual void DtPerformanceMonitor::addSample |
( |
double |
frameTime, |
|
|
int |
section = -1 |
|
) |
| |
|
virtual |
If the frameTime is > 0, it calculates the current frame rate as 1/frameTime. Then it adds this frameTime (either 0 or calculated value) to its averager as another sample point.
Referenced by DtPerformanceMonitorMarker::stop().
| virtual void DtPerformanceMonitor::adjustSample |
( |
int |
section, |
|
|
double |
frameTime |
|
) |
| |
|
virtual |
Adjusts the sample by the given time.
| static void DtPerformanceMonitor::DeleteInstance |
( |
| ) |
|
|
static |
Sets a new and returns the old performance monitor. If you no longer need the old performance monitor you can delete it.
| virtual double DtPerformanceMonitor::meanFrameRate |
( |
int |
section = -1 | ) |
|
|
virtual |
| virtual double DtPerformanceMonitor::medianFrameRate |
( |
int |
section = -1 | ) |
|
|
virtual |
| virtual double DtPerformanceMonitor::standardDeviationFrameRate |
( |
int |
section = -1 | ) |
|
|
virtual |
| virtual double DtPerformanceMonitor::minimumFrameRate |
( |
int |
section = -1 | ) |
|
|
virtual |
| virtual double DtPerformanceMonitor::maximumFrameRate |
( |
int |
section = -1 | ) |
|
|
virtual |
| virtual double DtPerformanceMonitor::lastSample |
( |
int |
section = -1 | ) |
|
|
virtual |
- Returns
- The last sample point added.
| virtual void DtPerformanceMonitor::reset |
( |
| ) |
|
|
virtual |
Clear out the array of frame rates and start over.
| virtual void DtPerformanceMonitor::setNumberOfFramesToAverage |
( |
unsigned int |
numFramesToAverage | ) |
|
|
virtual |
Can also be set in a frameRateRequestMessage. A zero turns off averaging.
| virtual unsigned int DtPerformanceMonitor::numberOfFramesToAverage |
( |
| ) |
|
|
virtual |
| virtual int DtPerformanceMonitor::numSections |
( |
| ) |
const |
|
virtual |
| virtual int DtPerformanceMonitor::section |
( |
int |
index | ) |
const |
|
virtual |
The section at the given index. This can be used to get the time for the given section.
| virtual std::vector<int> DtPerformanceMonitor::sections |
( |
| ) |
const |
|
virtual |
| const SectionTimes& DtPerformanceMonitor::sectionTimes |
( |
| ) |
const |
|
inline |
| double DtPerformanceMonitor::currentFrameRate |
( |
| ) |
const |
|
inline |
| std::map<int, std::string>* DtPerformanceMonitor::theProfileContextStrings |
|
staticprotected |
| bool DtPerformanceMonitor::myIsPaused |
|
protected |
| double DtPerformanceMonitor::myCurrentFrameRate |
|
protected |
The documentation for this class was generated from the following file: