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

Bring back track filtering #965

Closed
zhangxaochen opened this issue Dec 13, 2024 · 7 comments
Closed

Bring back track filtering #965

zhangxaochen opened this issue Dec 13, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@zhangxaochen
Copy link

My perfetto is in "v48.1-4228a730f" today, and many BAD things happen:

  1. filter(top left) box is gone;
    Image

  2. pressing 'M' after click cannot mark the section, but only a single moment;
    Image

  3. pressing 'DEL' cannot delete a marker
    Image
    I used to delete a span note by pressing the 'DEL' key, but now it fails to work. I have to use the mouse to click the 'remove' button.

@LalitMaganti
Copy link
Collaborator

Re. 1

The filter tracks box was temporarily removed because it was not working correctly in all cases and was causing issues with other features we wanted to build.

It will be back in future versions when we figure out how to bring it back without the bugs.

Re 2 and 3)

These seem like bugs we should fix.

@LalitMaganti
Copy link
Collaborator

  1. is fixed by https://r.android.com/3412861

@LalitMaganti
Copy link
Collaborator

  1. is fixed by https://r.android.com/3412664

@LalitMaganti LalitMaganti added the bug Something isn't working label Dec 13, 2024
primiano pushed a commit that referenced this issue Dec 13, 2024
This missing where clause meant the selected duration was ~almost always
wrong because there would usually be a different event at the same
timestamp.

Bug: #965
Change-Id: I0fc109ec68ee9d229ff67e24e479a927c4965485
primiano pushed a commit that referenced this issue Dec 13, 2024
This is a tricky UX decision because you could argue you want this.
However, IMO most of the time people create a note to mark that time
point, not because they actually want to annotate it. By moving focus,
we also make it much harder to actually delete the note as you need to
click the note *twice* to be able to delete it (once to select, once to
remove focus from text box).

Making the focus explicit makes this much more obvious to the user that
the focus is on the box so other hotkeys will not work: tbh I did not
even notice that the focus was being stolen for several minutes while
debugging this issue.

Change-Id: I01ae9318b59b166ddd7d7c244d0c287d25f6857f
Bug: #965
@LalitMaganti
Copy link
Collaborator

Fixes for 2) and 3) have landed, will cherry pick to canary and stable.

  1. I've consulted with @stevegolton and we agree that we need to land a few more things before we can bring track filtering back in a sustainable way.

@LalitMaganti LalitMaganti changed the title v48.1-4228a730f is buggy: 1. filter(top left) box is gone; 2. pressing 'M' cannot span note the section by single click; 3. pressing 'DEL' cannot delete a span note Bring back track filtering Dec 13, 2024
jrguzman-ms pushed a commit to msft-mirror-aosp/platform.external.perfetto that referenced this issue Dec 18, 2024
This is a tricky UX decision because you could argue you want this.
However, IMO most of the time people create a note to mark that time
point, not because they actually want to annotate it. By moving focus,
we also make it much harder to actually delete the note as you need to
click the note *twice* to be able to delete it (once to select, once to
remove focus from text box).

Making the focus explicit makes this much more obvious to the user that
the focus is on the box so other hotkeys will not work: tbh I did not
even notice that the focus was being stolen for several minutes while
debugging this issue.

Change-Id: I01ae9318b59b166ddd7d7c244d0c287d25f6857f
Bug: google/perfetto#965
(cherry picked from commit 547551d)
jrguzman-ms pushed a commit to msft-mirror-aosp/platform.external.perfetto that referenced this issue Dec 18, 2024
This missing where clause meant the selected duration was ~almost always
wrong because there would usually be a different event at the same
timestamp.

Bug: google/perfetto#965
Change-Id: I0fc109ec68ee9d229ff67e24e479a927c4965485
(cherry picked from commit 5370bad)
jrguzman-ms pushed a commit to msft-mirror-aosp/platform.external.perfetto that referenced this issue Dec 18, 2024
This is a tricky UX decision because you could argue you want this.
However, IMO most of the time people create a note to mark that time
point, not because they actually want to annotate it. By moving focus,
we also make it much harder to actually delete the note as you need to
click the note *twice* to be able to delete it (once to select, once to
remove focus from text box).

Making the focus explicit makes this much more obvious to the user that
the focus is on the box so other hotkeys will not work: tbh I did not
even notice that the focus was being stolen for several minutes while
debugging this issue.

Change-Id: I01ae9318b59b166ddd7d7c244d0c287d25f6857f
Bug: google/perfetto#965
(cherry picked from commit 547551d)
jrguzman-ms pushed a commit to msft-mirror-aosp/platform.external.perfetto that referenced this issue Dec 18, 2024
This missing where clause meant the selected duration was ~almost always
wrong because there would usually be a different event at the same
timestamp.

Bug: google/perfetto#965
Change-Id: I0fc109ec68ee9d229ff67e24e479a927c4965485
(cherry picked from commit 5370bad)
@weijizhen
Copy link

This filtering function is very convenient, and we really need it

@stevegolton
Copy link
Member

The track filter is now back and available on the autopush channel. However it's now hidden behind a popup as it needs to share screen real estate with the workspace selector.

Image

@weijizhen
Copy link

weijizhen commented Jan 15, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants