The perfetto .proto
definition was copied from the perfetto.dev
repo.
See the synthetic track event guide for some documentation on creating these events. The output binary file can be opened from the perfetto UI. The traceconv
tool is copied here for examining the generated binary.
The examples used in this repo are all lifted from the instructions above.
pip3 install protobuf
python3 ./test.py
# check the generated binary:
./traceconv text output.perfetto-trace
The protoc
compiler can be found here
protoc perfetto_trace.proto --python_output=gen