ros2_tracing/tracetools
Christophe Bedard 974f4144bb Fix macro
2019-05-17 15:43:53 +02:00
..
include/tracetools Add context to rcl_init tracepoint params 2019-05-17 15:42:30 +02:00
lttng Add context to rcl_init tracepoint params 2019-05-17 15:42:30 +02:00
scripts Rename rclcpp_callback_start|end to rclcpp_subscription_callback_start|end 2019-05-17 13:24:21 +02:00
src Fix macro 2019-05-17 15:43:53 +02:00
.gitignore Ignore traces directory 2019-05-16 13:07:31 +02:00
CMakeLists.txt Add build files 2019-05-16 13:03:22 +02:00
package.xml Add build files 2019-05-16 13:03:22 +02:00
README.md Add README with building instructions 2019-05-16 13:03:39 +02:00

tracetools

Building

If tracing is not enabled when building, or if LTTng is not found, then this package will not do anything.

To enable tracing:

  1. Install LTTng:
    $ sudo apt-get install lttng-tools lttng-modules-dkms liblttng-ust-dev
    
  2. Build with the WITH_LTTNG flag:
    $ colcon build --cmake-args " -DWITH_LTTNG=ON"
    
  3. Check if tracing is enabled (after sourcing):
    $ ros2 run tracetools tracetools_status
    

Tracing

By default, the steps above will not lead to trace data being generated, and thus they will have no impact on execution.

LTTng has to be enabled: TODO mention scripts