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

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

Private Attributes

std::string name_
 
Profilerprof_
 

Detailed Description

This instance will call Profiler::begin() when constructed and Profiler::end() when it goes out of scope.

Definition at line 77 of file profiler.h.

Constructor & Destructor Documentation

◆ ScopedBlock()

moveit::tools::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 81 of file profiler.h.

◆ ~ScopedBlock()

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

Definition at line 86 of file profiler.h.

Member Data Documentation

◆ name_

std::string moveit::tools::Profiler::ScopedBlock::name_
private

Definition at line 92 of file profiler.h.

◆ prof_

Profiler& moveit::tools::Profiler::ScopedBlock::prof_
private

Definition at line 93 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 Thu Apr 18 2024 02:23:41