I'm working on a new python script to generate perfetto data from uftrace. As it requires knowledge of the perfetto protobuf format, it'd be great if we do it using python rather than adding it to the builtin dump command. Currently only basic function tracing is supported.
The script is available at review/script-perfetto-v1 branch.
Here's a simple example.
$ uftrace record tests/t-abc
$ uftrace script -S scripts/perfetto.py
Trace written to uftrace.data.perfetto-trace
Open with https://ui.perfetto.dev.
And upload it to https://ui.perfetto.dev.
