Skip to content

fix(grouping): More classification - #27880

Merged
untitaker merged 7 commits into
masterfrom
fix/more-classification
Aug 4, 2021
Merged

untitaker merged 7 commits into
masterfrom
fix/more-classification

Conversation

@untitaker

@untitaker untitaker commented Aug 2, 2021 •

Copy link
Copy Markdown
Member

Test harness detected overlapping testcases, so I also removed them in a separate commit

  • <compiler-generated> was annotated on too many frames, so we now go with a list of guaranteed-noise function names
  • Looper.loop and similar frames are a threadbase. They are used to group ANR which is bad. Instead of categorizing all those random system frames as threadbases, remove systemframes close to threadbase
  • libart contains random utility functions so it can't be sentinel frame. Instead pick out a few interesting functions
  • java.lang.Thread, the entire module, is present in way more frames that aren't threadbases, and as a result the entire stacktrace wasn't grouped by

@untitaker
untitaker requested a review from jan-auer August 2, 2021 11:19
@evanpurkhiser

Copy link
Copy Markdown
Member

Would be nice to have a scope in the PR title

@untitaker untitaker changed the title fix: More classification fix(grouping): More classification Aug 3, 2021

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

looks good

category:load +sentinel +prefix
category:gl +sentinel
category:gc +sentinel
category:runtime +sentinel

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.

We should start adding reasoning in comments to such rules. This one particular, what's the thought behind it? Wouldn't this cause irrelevant runtime frames to be chosen over top app frames in grouping?

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.

Fair enough, I added a comment

family:native function:memcmp category=system
family:native package:CoreFoundation category=system
family:native package:Foundation category=system
family:native package:CFNetwork category=system

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.

Should we just add the full list of Apple system frameworks here?

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.

I'll create a separate task for this where we get testcases for each of those symbols and potentially have finer-grained categorization. In principle we should alredy classify most of them via their paths on macos, just not on iOS.

@untitaker
untitaker enabled auto-merge (squash) August 4, 2021 11:31
@untitaker
untitaker merged commit ef981c8 into master Aug 4, 2021
@untitaker
untitaker deleted the fix/more-classification branch August 4, 2021 11:38
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 19, 2021

This branch was successfully deployed

2 active deployments
Preview – storybook — b6372f10 Deployed Aug 4, 2021 by vercel[bot]
Preview – sentry — b6372f10 Deployed Aug 4, 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