ros2_tracing icon indicating copy to clipboard operation
ros2_tracing copied to clipboard

Upgrade to babeltrace 2.0

Open christophebedard opened this issue 2 years ago • 1 comments

Investigate using babeltrace2 for ingesting trace files from disk: https://github.com/efficios/babeltrace

(Issue moved from GitLab, see: https://gitlab.com/ros-tracing/ros2_tracing/-/issues/45)

christophebedard avatar Nov 22 '22 22:11 christophebedard

I made a baseline comparison for reading and converting all of the events in a trace file:

https://gist.github.com/mjcarroll/34e7f06d761c8c6ce2cce36027900b34

The main conclusion is that using babeltrace2 via their python API (https://babeltrace.org/docs/v2.0/python/bt2/) results in an ingestion that takes ~70s versus ~42s for the original babeltrace API. This was processing 865k events with kernel and user space events.

mjcarroll avatar Feb 06 '23 14:02 mjcarroll