Classes | Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
swri_profiler::Profiler Class Reference

#include <profiler.h>

List of all members.

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, ClosedInfo
closed_blocks_
static SpinLock lock_
static std::unordered_map
< std::string, OpenInfo
open_blocks_
static
boost::thread_specific_ptr
< TLS
tls_

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.

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 
) [inline, static, private]

Definition at line 132 of file profiler.h.

void swri_profiler::Profiler::collectAndPublish ( ) [static, private]

Definition at line 92 of file profiler.cpp.

void swri_profiler::Profiler::initializeProfiler ( ) [static, private]

Definition at line 45 of file profiler.cpp.

void swri_profiler::Profiler::initializeTLS ( ) [static, private]

Definition at line 60 of file profiler.cpp.

static bool swri_profiler::Profiler::open ( const std::string &  name,
const ros::WallTime t0 
) [inline, static, private]

Definition at line 98 of file profiler.h.

void swri_profiler::Profiler::profilerMain ( ) [static, private]

Definition at line 78 of file profiler.cpp.


Member Data Documentation

std::unordered_map< std::string, Profiler::ClosedInfo > swri_profiler::Profiler::closed_blocks_ [static, private]

Definition at line 83 of file profiler.h.

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_ [static, private]

Definition at line 78 of file profiler.h.

boost::thread_specific_ptr< Profiler::TLS > swri_profiler::Profiler::tls_ [static, private]

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 Sat Apr 27 2019 03:08:47