This instance will call Profiler::begin() when constructed and Profiler::end() when it goes out of scope. More...
#include <profiler.h>
Public Member Functions | |
ScopedBlock (const std::string &name, Profiler &prof=Profiler::Instance()) | |
Start counting time for the block named name of the profiler prof. | |
~ScopedBlock (void) | |
Private Attributes | |
std::string | name_ |
Profiler & | prof_ |
This instance will call Profiler::begin() when constructed and Profiler::end() when it goes out of scope.
Definition at line 78 of file profiler.h.
moveit::Profiler::ScopedBlock::ScopedBlock | ( | const std::string & | name, |
Profiler & | prof = Profiler::Instance() |
||
) | [inline] |
Start counting time for the block named name of the profiler prof.
Definition at line 82 of file profiler.h.
moveit::Profiler::ScopedBlock::~ScopedBlock | ( | void | ) | [inline] |
Definition at line 87 of file profiler.h.
std::string moveit::Profiler::ScopedBlock::name_ [private] |
Definition at line 94 of file profiler.h.
Profiler& moveit::Profiler::ScopedBlock::prof_ [private] |
Definition at line 95 of file profiler.h.