Skip to content

Conversation

@fsimonis
Copy link
Member

@fsimonis fsimonis commented Nov 7, 2025

This PR adds documentation on how to perform advanced analysis using perfetto.

@fsimonis
Copy link
Member Author

fsimonis commented Nov 7, 2025

This could be interesting for you @s3n-w6i


### Prototyping queries in the UI

After importing a trace into [perfetto UI](ui.perfetto.dev), clicking the SQL tab on the left opens a text input.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
After importing a trace into [perfetto UI](ui.perfetto.dev), clicking the SQL tab on the left opens a text input.
After importing a trace into [perfetto UI](https://ui.perfetto.dev), clicking the SQL tab on the left opens a text input.


### Scripting the processing

For the scripting, I recommend using the [trace processor](https://perfetto.dev/docs/analysis/trace-processor-python) included in the python package `perfetto`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For the scripting, I recommend using the [trace processor](https://perfetto.dev/docs/analysis/trace-processor-python) included in the python package `perfetto`.
For the scripting, we recommend using the [trace processor](https://perfetto.dev/docs/analysis/trace-processor-python) included in the python package `perfetto`.

👀

```py
from perfetto.trace_processor import TraceProcessor

tp = TraceProcessor("profiling.pftrace")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A step is missing here: how to get the profiling.pftrace file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI You can also use the "trace.json".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants