Skip to content
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

process trackers sorting support in perfetto sdk #376

Closed
horusli opened this issue Nov 6, 2022 · 3 comments
Closed

process trackers sorting support in perfetto sdk #376

horusli opened this issue Nov 6, 2022 · 3 comments

Comments

@horusli
Copy link

horusli commented Nov 6, 2022

Hi perfetto team,

Is there any open api to allow multiple processtrack sorting in perfetto sdk, like according to accending or decenting pid or process name.
Just run several run with the same input, and it appears the display order for processtrackers is random, and the order is not changable. it would be nice to have this feature support for convenient analysis purpose.

@LalitMaganti
Copy link
Collaborator

The order of processes is not random - it depends on the "activity" of each process - i.e. how many and how long the slices are in each process.

The way to group tracks of interest is by starring them. We may support UI reordering in the future but we intentionally don't plan on configuring track order from the trace (legacy JSON format had this and it turned out to be a bad idea to decide UI from the trace).

@horusli
Copy link
Author

horusli commented Nov 15, 2022

The order of processes is not random - it depends on the "activity" of each process - i.e. how many and how long the slices are in each process.

The way to group tracks of interest is by starring them. We may support UI reordering in the future but we intentionally don't plan on configuring track order from the trace (legacy JSON format had this and it turned out to be a bad idea to decide UI from the trace).

I was geneating the tracker with const input(same amount and timing of events and fixed order for all processes, and several run the same input generate different process tracker order, which makes to guess that the order is random behind :-).

Anyway it would still be nice to have some fixed sort order that user can interfere directly or indirectly, like by process priority or something else, it would be great that the process weight most can be show up on top.

@LalitMaganti
Copy link
Collaborator

Folding this into #429

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

No branches or pull requests

2 participants