Repository navigation
Conversation
Contributor
PR risk: mediumFor commit Main concerns: public contract, data sent to Sentry, host performance. Rules that block low also fired:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
markushi
requested review from
0xadam-brown and
romtsn
and removed request for
a team
November 24, 2026 12:42
runningcode
reviewed
Dec 1, 2026
runningcode
left a comment
Contributor
There was a problem hiding this comment.
one comment about the clock!
| } | ||
| final @NotNull Looper mainLooper = Looper.getMainLooper(); | ||
| final @NotNull ThreadPoster mainThreadPoster = new HandlerThreadPoster(new Handler(mainLooper)); | ||
| // options.getMonotonicTicker() counts device sleep, which would read as a hang. |
Contributor
There was a problem hiding this comment.
ah yeah that makes sense. in that case that changes the decision we made to only have a single clock that counts time during deep sleep. we should probably add a clock that doesn't count time spent during sleep and use it here. feel free to create that abstraction and name it as you see fit.
the other issue here too is that calling static methods like this means less testability.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Runs
AnrProfilingIntegrationon theHangManagerand removes its own polling thread. The fatal ANR profile path keeps working.anrProfilingSampleRateis still drawn at each hang; only a sampled hang goes to the profile file (throughAnrProfileStore). The profile now starts at 300 ms of hang instead of 1 s.Design: Non-Fatal ANR Architecture (JAVA-777)
🤖 Generated with Claude Code
#skip-changelog