Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: ANR implementation now uses a HandlerThread and uptimeMilli…
…s, and only reports ANRs in the Using a HandlerThread with postDelayed and uptimeMillis will pause ANR detection when the system enters a deep sleep. As the ANR dialog is only shown when the user dispatches a touch event, we use whether the app is in the foreground or not as a proxy to determine whether we should count an ANR.
- Loading branch information
1 parent
d3cfcb6
commit 9ffc0a7
Showing
1 changed file
with
47 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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