Working Notes: my commonplace notebook for recording & exploring ideas.
Home. Site Map. Subscribe. More at expLog.
Notes on using perfetto
- downloading and use
trace_processor
to easily export traces to SQL tables
trace_processor <trace> -e db.sql
dumps the table trivially
- this makes it much easier to do analysis across multiple traces
- the
slices
table is my favorite, can also query from within perfetto
- they also have sql macros in the UI
- highlighting a region allows generating flamegraphs easily (can be slow)
- shortcuts like Ctrl-A work for selecting parts of the trace
- counters are pretty cool to highlight numerical values
Next set of experiments
- plugins
- loading in contents more dynamically to assemble traces
— Kunal