Public Member Functions | Private Attributes | List of all members
moveit::tools::Profiler::ScopedStart Class Reference

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) More...
 
 ~ScopedStart ()
 

Private Attributes

Profilerprof_
 
bool wasRunning_
 

Detailed Description

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 98 of file profiler.h.

Constructor & Destructor Documentation

◆ ScopedStart()

moveit::tools::Profiler::ScopedStart::ScopedStart ( Profiler prof = Profiler::instance())
inline

Take as argument the profiler instance to operate on (prof)

Definition at line 102 of file profiler.h.

◆ ~ScopedStart()

moveit::tools::Profiler::ScopedStart::~ScopedStart ( )
inline

Definition at line 108 of file profiler.h.

Member Data Documentation

◆ prof_

Profiler& moveit::tools::Profiler::ScopedStart::prof_
private

Definition at line 115 of file profiler.h.

◆ wasRunning_

bool moveit::tools::Profiler::ScopedStart::wasRunning_
private

Definition at line 116 of file profiler.h.


The documentation for this class was generated from the following file:


moveit_core
Author(s): Ioan Sucan , Sachin Chitta , Acorn Pooley
autogenerated on Fri Nov 6 2020 03:24:35