google / perfetto

Performance instrumentation and tracing for Android, Linux and Chrome (read-only mirror of https://android.googlesource.com/platform/external/perfetto/)
https://www.perfetto.dev
Apache License 2.0
2.81k stars 350 forks source link

How to open the perfetto UI to last few us/ms based on the log #699

Closed lavanyaeswarappa closed 8 months ago

lavanyaeswarappa commented 8 months ago

Hi, we are using perfetto trace.json to dum p our data and read the json file on UI. When we load the trace.json file on UI, the UI opens to the first timestamp of the log I believe. Is there a way to modify this to open towards the end of the visualization. Since most of our usecases are focused at the end of our logs, we want the UI to open at the end. Is there a way to customize this from trace.json file?

The UI needs to automatically open at the end point as shown below. This would avoid the user to zoom in and scroll to the end

image

LalitMaganti commented 8 months ago

This is covered in our docs, please see https://perfetto.dev/docs/visualization/deep-linking-to-perfetto-ui#opening-the-trace-at-a-specific-event-or-time.

lavanyaeswarappa commented 8 months ago

Thanks Lalit, Is there a way to configure this on json file?

LalitMaganti commented 8 months ago

No there is not, nor is there such a plan on supporting that feature.