code_profiler
include
tue
profiling
ros
profile_publisher.h
Go to the documentation of this file.
1
#ifndef TUE_PROFILING_ROS_PROFILE_PUBLISHER_H_
2
#define TUE_PROFILING_ROS_PROFILE_PUBLISHER_H_
3
4
#include <ros/publisher.h>
5
6
namespace
tue
7
{
8
9
class
Profiler;
10
11
class
ProfilePublisher
{
12
13
public
:
14
15
ProfilePublisher
();
16
17
ProfilePublisher
(
const
Profiler
&
profiler
);
18
19
ProfilePublisher
(
const
Profiler
*
profiler
);
20
21
virtual
~ProfilePublisher
() =
default
;
22
23
void
initialize
(
const
Profiler
&
profiler
);
24
25
void
initialize
(
const
Profiler
*
profiler
);
26
27
void
publish
()
const
;
28
29
protected
:
30
31
void
initialize
();
32
33
const
Profiler
*
profiler_
;
34
35
ros::Publisher
pub_stats_
;
36
37
};
38
39
}
40
41
#endif
tue::ProfilePublisher::profiler_
const Profiler * profiler_
Definition:
profile_publisher.h:33
profiler
tue::Profiler profiler
Definition:
test_profiler.cpp:4
tue::ProfilePublisher::pub_stats_
ros::Publisher pub_stats_
Definition:
profile_publisher.h:35
tue::ProfilePublisher::publish
void publish() const
Definition:
profile_publisher.cpp:59
tue::ProfilePublisher::initialize
void initialize()
Definition:
profile_publisher.cpp:50
tue::Profiler
Definition:
profiler.h:11
tue::ProfilePublisher::ProfilePublisher
ProfilePublisher()
Definition:
profile_publisher.cpp:14
tue::ProfilePublisher
Definition:
profile_publisher.h:11
tue::ProfilePublisher::~ProfilePublisher
virtual ~ProfilePublisher()=default
tue
Definition:
loop_timer.h:8
Generated on Sun Feb 23 2025 04:33:26 for code_profiler by
1.8.17