Skip to content

kting28/perfetto_protobuf_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstration of Perfetto synthetic track event generation with python

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.

Prerequisite

pip3 install protobuf

Run

python3 ./test.py
# check the generated binary:
./traceconv text output.perfetto-trace

Compiling proto definition

The protoc compiler can be found here

protoc perfetto_trace.proto --python_output=gen

About

Python TrackEvent synthetic generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages