-
-
Notifications
You must be signed in to change notification settings - Fork 79
Advanced analysis docs with perfetto #635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
This could be interesting for you @s3n-w6i |
3b09a76 to
c4b8bb7
Compare
|
|
||
| ### 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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".
This PR adds documentation on how to perform advanced analysis using perfetto.