#include <hpp/rbprm/rbprm-profiler.hh>
Public Member Functions | |
RbPrmProfiler (StopwatchMode _mode=NONE) | |
Constructor. More... | |
~RbPrmProfiler () | |
Destructor. More... | |
void | add_to_count (const std::string &event, int nbOcc=1) |
void | report_count (std::ostream &output=std::cout) |
void | report_all_and_count (int precision=2, std::ostream &output=std::cout) |
![]() | |
Stopwatch (StopwatchMode _mode=NONE) | |
Constructor. More... | |
~Stopwatch () | |
Destructor. More... | |
bool | performance_exists (std::string perf_name) |
Tells if a performance with a certain ID exists. More... | |
void | set_mode (StopwatchMode mode) |
Initialize stopwatch to use a certain time taking mode. More... | |
void | start (std::string perf_name) |
Start the stopwatch related to a certain piece of code. More... | |
void | stop (std::string perf_name) |
Stops the stopwatch related to a certain piece of code. More... | |
void | pause (std::string perf_name) |
Stops the stopwatch related to a certain piece of code. More... | |
void | reset (std::string perf_name) |
Reset a certain performance record. More... | |
void | reset_all () |
Resets all the performance records. More... | |
void | report (std::string perf_name, int precision=2, std::ostream &output=std::cout) |
Dump the data of a certain performance record. More... | |
void | report_all (int precision=2, std::ostream &output=std::cout) |
Dump the data of all the performance records. More... | |
long double | get_total_time (std::string perf_name) |
Returns total execution time of a certain performance. More... | |
long double | get_average_time (std::string perf_name) |
Returns average execution time of a certain performance. More... | |
long double | get_min_time (std::string perf_name) |
Returns minimum execution time of a certain performance. More... | |
long double | get_max_time (std::string perf_name) |
Returns maximum execution time of a certain performance. More... | |
long double | get_last_time (std::string perf_name) |
Return last measurement of a certain performance. More... | |
long double | get_time_so_far (std::string perf_name) |
Return the time since the start of the last measurement of a given performance. More... | |
void | turn_off () |
Turn off clock, all the Stopwatch::* methods return without doing anything after this method is called. More... | |
void | turn_on () |
Turn on clock, restore clock operativity after a turn_off(). More... | |
long double | take_time () |
Take time, depends on mode. More... | |
Additional Inherited Members | |
![]() | |
bool | active |
Flag to hold the clock's status. More... | |
StopwatchMode | mode |
Time taking mode. More... | |
std::map< std::string, PerformanceData > * | records_of |
Pointer to the dynamic structure which holds the collection of performance data. More... | |
|
inline |
Constructor.
|
inline |
Destructor.
|
inline |
|
inline |
References getRbPrmProfiler(), Stopwatch::report_all(), and report_count().
|
inline |
Referenced by report_all_and_count().