code_profiler
Public Member Functions | Protected Attributes | List of all members
StatsPublisher Class Reference

#include <StatsPublisher.h>

Public Member Functions

void initialize ()
 
void publish () const
 
void startTimer (const std::string &label)
 
 StatsPublisher ()
 
void stopTimer (const std::string &label)
 
virtual ~StatsPublisher ()
 

Protected Attributes

ros::Publisher pub_stats_
 
std::stack< ScopeStatstack_
 
std::map< std::string, Timertimers_
 

Detailed Description

Definition at line 22 of file StatsPublisher.h.

Constructor & Destructor Documentation

◆ StatsPublisher()

StatsPublisher::StatsPublisher ( )

Definition at line 8 of file StatsPublisher.cpp.

◆ ~StatsPublisher()

StatsPublisher::~StatsPublisher ( )
virtual

Definition at line 14 of file StatsPublisher.cpp.

Member Function Documentation

◆ initialize()

void StatsPublisher::initialize ( )

Definition at line 20 of file StatsPublisher.cpp.

◆ publish()

void StatsPublisher::publish ( ) const

Definition at line 61 of file StatsPublisher.cpp.

◆ startTimer()

void StatsPublisher::startTimer ( const std::string label)

Definition at line 28 of file StatsPublisher.cpp.

◆ stopTimer()

void StatsPublisher::stopTimer ( const std::string label)

Definition at line 36 of file StatsPublisher.cpp.

Member Data Documentation

◆ pub_stats_

ros::Publisher StatsPublisher::pub_stats_
protected

Definition at line 41 of file StatsPublisher.h.

◆ stack_

std::stack<ScopeStat> StatsPublisher::stack_
protected

Definition at line 45 of file StatsPublisher.h.

◆ timers_

std::map<std::string, Timer> StatsPublisher::timers_
protected

Definition at line 43 of file StatsPublisher.h.


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