A diagnostic manager class. More...
#include <util/util.hh>
Inherits SingletonT< DiagnosticManager >.
Public Member Functions | |
| std::string | GetLabel (int _index) const GAZEBO_DEPRECATED(7.0) |
| Get a label for a timer. More... | |
| boost::filesystem::path | GetLogPath () const GAZEBO_DEPRECATED(7.0) |
| Get the path in which logs are stored. More... | |
| common::Time | GetTime (int _index) const GAZEBO_DEPRECATED(7.0) |
| Get the time of a timer instance. More... | |
| common::Time | GetTime (const std::string &_label) const GAZEBO_DEPRECATED(7.0) |
| Get a time based on a label. More... | |
| int | GetTimerCount () const GAZEBO_DEPRECATED(7.0) |
| Get the number of timers. More... | |
| void | Init (const std::string &_worldName) |
| Initialize to report diagnostics about a world. More... | |
| std::string | Label (const int _index) const |
| Get a label for a timer. More... | |
| void | Lap (const std::string &_name, const std::string &_prefix) |
| Output the current elapsed time of an active timer with a prefix string. More... | |
| boost::filesystem::path | LogPath () const |
| Get the path in which logs are stored. More... | |
| void | StartTimer (const std::string &_name) |
| Start a new timer instance. More... | |
| void | StopTimer (const std::string &_name) |
| Stop a currently running timer. More... | |
| common::Time | Time (const int _index) const |
| Get the time of a timer instance. More... | |
| common::Time | Time (const std::string &_label) const |
| Get a time based on a label. More... | |
| int | TimerCount () const |
| Get the number of timers. More... | |
Static Public Member Functions | |
| static DiagnosticManager * | Instance () |
| Get an instance of the singleton. More... | |
A diagnostic manager class.
| std::string GetLabel | ( | int | _index | ) | const |
Get a label for a timer.
| [in] | _index | Index of a timer instance |
| boost::filesystem::path GetLogPath | ( | ) | const |
Get the path in which logs are stored.
| common::Time GetTime | ( | int | _index | ) | const |
Get the time of a timer instance.
| [in] | _index | The index of a timer instance |
| common::Time GetTime | ( | const std::string & | _label | ) | const |
Get a time based on a label.
| [in] | _label | Name of the timer instance |
| int GetTimerCount | ( | ) | const |
| void Init | ( | const std::string & | _worldName | ) |
Initialize to report diagnostics about a world.
| [in] | _worldName | Name of the world. |
|
inlinestaticinherited |
Get an instance of the singleton.
| std::string Label | ( | const int | _index | ) | const |
Get a label for a timer.
| [in] | _index | Index of a timer instance |
| 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.
| [in] | _name | Name of the timer to access. |
| [in] | _prefix | Informational string that is output with the elapsed time. |
| boost::filesystem::path LogPath | ( | ) | const |
Get the path in which logs are stored.
| void StartTimer | ( | const std::string & | _name | ) |
Start a new timer instance.
| [in] | _name | Name of the timer. |
| void StopTimer | ( | const std::string & | _name | ) |
Stop a currently running timer.
| [in] | _name | Name of the timer to stop. |
| common::Time Time | ( | const int | _index | ) | const |
Get the time of a timer instance.
| [in] | _index | The index of a timer instance |
| common::Time Time | ( | const std::string & | _label | ) | const |
Get a time based on a label.
| [in] | _label | Name of the timer instance |
| int TimerCount | ( | ) | const |
Get the number of timers.