Allow creating a live tracing session with ros2 trace
/Trace
#149
Labels
enhancement
New feature or request
ros2 trace
/Trace
#149
By "live tracing," we mean processing or analyzing the trace data live as it gets generated. This is different from the usual workflow, which is to collect the trace data and then process it offline later, after the execution.
When using the
lttng
CLI, this is done with the--live
option: https://lttng.org/docs/v2.13/#doc-lttng-live.It would be good to expose it through the
ros2 trace
command and theTrace
launch action. A live session can be created usinglttng-ctl
'slttng_create_session_live()
; this would need to be exposed throughlttngpy
.In the meantime, here's an example script to enable tracing for ROS 2 with a live session using the
lttng
CLI directly:Click to expand: live_trace.sh
Here's a simple Python script that can receive and process some trace data live using the babeltrace2 Python bindings (just an example script):
Click to expand: bt2_lttng_live.py
How to use:
./live_trace.sh test
net://
ros2 trace
/Trace
, but for now this script can be usedpython3 bt2_lttng_live.py <URI>
The text was updated successfully, but these errors were encountered: