#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, ClosedInfo > | closed_blocks_ |
static SpinLock | lock_ |
static std::unordered_map < std::string, OpenInfo > | open_blocks_ |
static boost::thread_specific_ptr < TLS > | tls_ |
Definition at line 41 of file profiler.h.
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.
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.
std::unordered_map< std::string, Profiler::ClosedInfo > swri_profiler::Profiler::closed_blocks_ [static, private] |
Definition at line 83 of file profiler.h.
SpinLock swri_profiler::Profiler::lock_ [static, private] |
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.