This instance will call Profiler::start() when constructed and Profiler::stop() when it goes out of scope. If the profiler was already started, this block's constructor and destructor take no action. More...
#include <profiler.h>
Public Member Functions | |
ScopedStart (Profiler &prof=Profiler::Instance()) | |
Take as argument the profiler instance to operate on (prof) | |
~ScopedStart (void) | |
Private Attributes | |
Profiler & | prof_ |
bool | wasRunning_ |
This instance will call Profiler::start() when constructed and Profiler::stop() when it goes out of scope. If the profiler was already started, this block's constructor and destructor take no action.
Definition at line 100 of file profiler.h.
moveit::Profiler::ScopedStart::ScopedStart | ( | Profiler & | prof = Profiler::Instance() | ) | [inline] |
Take as argument the profiler instance to operate on (prof)
Definition at line 105 of file profiler.h.
moveit::Profiler::ScopedStart::~ScopedStart | ( | void | ) | [inline] |
Definition at line 111 of file profiler.h.
Profiler& moveit::Profiler::ScopedStart::prof_ [private] |
Definition at line 119 of file profiler.h.
bool moveit::Profiler::ScopedStart::wasRunning_ [private] |
Definition at line 120 of file profiler.h.