google / perfetto

Performance instrumentation and tracing for Android, Linux and Chrome (read-only mirror of https://android.googlesource.com/platform/external/perfetto/)

Home Page:https://www.perfetto.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion about deep linking

basketgd opened this issue · comments

Hello,
I use deep linking to the Perfetto UI feature very conveniently.
It is really easy to share to my co-worker and easy to collaborate on a specific perfetto.

Anyway, whenever I use deep linking, I have to give more information about what slice should be checked.
Like "Please check 3rd slice in binder:47 thread, SystemUI process." or "Please check longest slice in Gallery main thread."
And we can suppose that there are some slices(very short or having similar duration) can make confuse what slice is selected.

Would you check about any slice get the focus(like 'f' key function) after perfetto loaded?
Perfetto user can deliver slice id when post a message like below.
{
'perfetto': {
buffer: ArrayBuffer;
title: string;
fileName?: string; // Optional
url?: string; // Optional
[anySlice ?: int; // Optional]
}
}

Would you please check about this idea?

Something similar to this has been implemented by changing the URL to have arguments for timestamp/duration/pid etc. Code for this can be found here