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. The packages in this repo provide two options.
The first option is to use the `ros2 trace` command.
```
$ ros2 trace
```
By default, it will enable all ROS tracepoints and a few kernel tracepoints. The trace will be written to `/tmp/session-YYYYMMDDHHMMSS`. Run the command with `-h` for more information.
### Launch file trace action
Another option is to use the `Trace` action in a launch file along with your `Node` action(s).
See [this example launch file](./tracetools_launch/launch/example.launch.py) for more information.