Skip to content

fix(grouping): Remove Android view and widget noise from stacktrace - #27836

Merged
untitaker merged 3 commits into
masterfrom
fix/anr-view-noise
Jul 30, 2021
Merged

untitaker merged 3 commits into
masterfrom
fix/anr-view-noise

Conversation

@untitaker

@untitaker untitaker commented Jul 29, 2021 •

Copy link
Copy Markdown
Member

In the checked in categorization test, we want to group by application frame. Unfortunately that is prevented by a large amount of view and widget frames which register as sentinel frames. Instead of fixing UI categorization we rely on threadbase to make a difference, though we add a few modules to UI classification too.

Slightly unclear if that's a good threadbase but so far it seems like a good idea. Perhaps run another CH query before merging, though my attempts to run a meaningful one in a reasonable amount of time haven't been successful. Otherwise we'll just see in test projects what it does

@untitaker
untitaker requested review from jjbayer and marandaneto July 29, 2021 17:32
module:android.text.* category=ui
module:android.widget.* category=ui
module:android.app.Dialog category=ui
module:androidx.*.widget.* category=ui

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
module:androidx.*.widget.* category=ui
module:androidx.*.widget.* category=ui
module:androidx.*.view.* category=ui

since we have android.view.*, makes sense to add androidx.*.view.* too

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marandaneto do you have an example event for that?

@marandaneto marandaneto left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jjbayer jjbayer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Slightly worried that this liberal assignment of threadbase will make it harder to reason intuitively about it in the future (if threadbase then...), but we will see.

@untitaker

Copy link
Copy Markdown
Member Author

Slightly worried that this liberal assignment of threadbase will make it harder to reason intuitively about it in the future (if threadbase then...), but we will see.

yeah then we need to improve UI to make this easier to reason about, even if this rule doesn't make sense we still have plenty of other threadbases that do need to be there

@untitaker
untitaker merged commit 91c6a7b into master Jul 30, 2021
@untitaker
untitaker deleted the fix/anr-view-noise branch July 30, 2021 11:29
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 14, 2021

This branch was successfully deployed

2 active deployments
Preview – storybook — 46f3c2ee Deployed Jul 29, 2021 by vercel[bot]
Preview – sentry — 46f3c2ee Deployed Jul 29, 2021 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants