A diagnostic manager class.
More...
#include <util/util.hh>
Inherits SingletonT< DiagnosticManager >.
A diagnostic manager class.
§ GetLabel()
std::string GetLabel |
( |
int |
_index | ) |
const |
§ GetLogPath()
boost::filesystem::path GetLogPath |
( |
| ) |
const |
§ GetTime() [1/2]
§ GetTime() [2/2]
§ GetTimerCount()
int GetTimerCount |
( |
| ) |
const |
§ Init()
void Init |
( |
const std::string & |
_worldName | ) |
|
Initialize to report diagnostics about a world.
- Parameters
-
[in] | _worldName | Name of the world. |
§ Instance()
Get an instance of the singleton.
§ Label()
std::string Label |
( |
const int |
_index | ) |
const |
Get a label for a timer.
- Parameters
-
[in] | _index | Index of a timer instance |
- Returns
- Label of the specified timer
§ Lap()
void Lap |
( |
const std::string & |
_name, |
|
|
const std::string & |
_prefix |
|
) |
| |
Output the current elapsed time of an active timer with a prefix string.
This also resets the timer and keeps it running.
- Parameters
-
[in] | _name | Name of the timer to access. |
[in] | _prefix | Informational string that is output with the elapsed time. |
§ LogPath()
boost::filesystem::path LogPath |
( |
| ) |
const |
Get the path in which logs are stored.
- Returns
- The path in which logs are stored.
§ StartTimer()
void StartTimer |
( |
const std::string & |
_name | ) |
|
Start a new timer instance.
- Parameters
-
[in] | _name | Name of the timer. |
- Returns
- A pointer to the new diagnostic timer
§ StopTimer()
void StopTimer |
( |
const std::string & |
_name | ) |
|
Stop a currently running timer.
- Parameters
-
[in] | _name | Name of the timer to stop. |
§ Time() [1/2]
Get the time of a timer instance.
- Parameters
-
[in] | _index | The index of a timer instance |
- Returns
- Time of the specified timer
§ Time() [2/2]
Get a time based on a label.
- Parameters
-
[in] | _label | Name of the timer instance |
- Returns
- Time of the specified timer
§ TimerCount()
Get the number of timers.
- Returns
- The number of timers
The documentation for this class was generated from the following file: