hpp-rbprm
4.10.0
Implementation of RB-PRM planner using hpp.
|
Go to the documentation of this file.
28 #ifndef RBPRM_PROFILER_H
29 #define RBPRM_PROFILER_H
44 std::map<std::string, int>::iterator it = count_.find(event);
45 if(it == count_.end())
47 count_.insert(std::make_pair(event,nbOcc));
58 for(std::map<std::string, int>::iterator it = count_.begin();
59 it != count_.end(); ++it)
61 output << it->first <<
": " << it->second << std::endl;
73 std::map<std::string, int> count_;
Definition: rbprm-profiler.hh:33
void add_to_count(const std::string &event, int nbOcc=1)
Definition: rbprm-profiler.hh:42
@ NONE
Definition: stop-watch.hh:49
StopwatchMode
Definition: stop-watch.hh:47
A class representing a stopwatch.
Definition: stop-watch.hh:146
void report_count(std::ostream &output=std::cout)
Definition: rbprm-profiler.hh:56
void report_all_and_count(int precision=2, std::ostream &output=std::cout)
Definition: rbprm-profiler.hh:65
RbPrmProfiler(StopwatchMode _mode=NONE)
Definition: rbprm-profiler.hh:37
RbPrmProfiler & getRbPrmProfiler()
~RbPrmProfiler()
Definition: rbprm-profiler.hh:40
void report_all(int precision=2, std::ostream &output=std::cout)