Classes | Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
swri_profiler::Profiler Class Reference

#include <profiler.h>

Classes

struct  ClosedInfo
 
struct  OpenInfo
 
struct  TLS
 

Public Member Functions

 Profiler (const std::string &name)
 
 ~Profiler ()
 

Static Private Member Functions

static void close (const std::string &name, const ros::WallTime &tf)
 
static void collectAndPublish ()
 
static void initializeProfiler ()
 
static void initializeTLS ()
 
static bool open (const std::string &name, const ros::WallTime &t0)
 
static void profilerMain ()
 

Private Attributes

std::string name_
 

Static Private Attributes

static std::unordered_map< std::string, ClosedInfoclosed_blocks_
 
static SpinLock lock_
 
static std::unordered_map< std::string, OpenInfoopen_blocks_
 
static boost::thread_specific_ptr< TLStls_
 

Detailed Description

Definition at line 41 of file profiler.h.

Constructor & Destructor Documentation

swri_profiler::Profiler::Profiler ( const std::string &  name)
inline

Definition at line 176 of file profiler.h.

swri_profiler::Profiler::~Profiler ( )
inline

Definition at line 185 of file profiler.h.

Member Function Documentation

static void swri_profiler::Profiler::close ( const std::string &  name,
const ros::WallTime tf 
)
inlinestaticprivate

Definition at line 132 of file profiler.h.

void swri_profiler::Profiler::collectAndPublish ( )
staticprivate

Definition at line 92 of file profiler.cpp.

void swri_profiler::Profiler::initializeProfiler ( )
staticprivate

Definition at line 45 of file profiler.cpp.

void swri_profiler::Profiler::initializeTLS ( )
staticprivate

Definition at line 60 of file profiler.cpp.

static bool swri_profiler::Profiler::open ( const std::string &  name,
const ros::WallTime t0 
)
inlinestaticprivate

Definition at line 98 of file profiler.h.

void swri_profiler::Profiler::profilerMain ( )
staticprivate

Definition at line 78 of file profiler.cpp.

Member Data Documentation

std::unordered_map< std::string, Profiler::ClosedInfo > swri_profiler::Profiler::closed_blocks_
staticprivate

Definition at line 83 of file profiler.h.

SpinLock swri_profiler::Profiler::lock_
staticprivate

Definition at line 90 of file profiler.h.

std::string swri_profiler::Profiler::name_
private

Definition at line 173 of file profiler.h.

std::unordered_map< std::string, Profiler::OpenInfo > swri_profiler::Profiler::open_blocks_
staticprivate

Definition at line 78 of file profiler.h.

boost::thread_specific_ptr< Profiler::TLS > swri_profiler::Profiler::tls_
staticprivate

Definition at line 87 of file profiler.h.


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


swri_profiler
Author(s):
autogenerated on Fri Nov 27 2020 03:44:17