Allow creating a live tracing session with ros2 trace
/Trace
#149
Labels
enhancement
New feature or request
ros2 trace
/Trace
#149
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 through ourlttngpy
.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: