ros2_tracing/tracetools
Christophe Bedard efe47e309d Fix indendation
2019-05-17 16:21:36 +02:00
..
include/tracetools Fix indendation 2019-05-17 16:21:36 +02:00
lttng Add context to rcl_init tracepoint params 2019-05-17 15:42:30 +02:00
scripts Enable *subscription_callback_added event 2019-05-17 16:19:54 +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