diff options
| author | 2024-02-19 18:27:53 +0800 | |
|---|---|---|
| committer | 2024-02-19 21:03:10 +0800 | |
| commit | b5cf2f91911d95562decbbc25d16fa515fa56ee6 (patch) | |
| tree | bc7d6487b7e5c816aeadd7d707c7496e3919eaf7 /libs/input/PointerController.cpp | |
| parent | ce8d4a38b4c6a925a5c24c365187ba8f2e6f61f4 (diff) | |
Streamline dump state for input ANR
This reduce ~90% execution time and memory usage of the dump.
The case when there are only the home and ANR app:
80ms -> 5ms
111k chars -> 11k
- Only dump related task/activity/window
- Removed the looper dump in DisplayPolicy because PhoneWindowManager
already has the same info.
Bug: 322386106
Bug: 322947521
Test: Trigger ANR by a an activity that sleeps 6s on UI thread.
Check the duration of trace dumpAnrStateLocked.
Check the output from
adb shell dumpsys activity lastanr
adb shell dumpsys window lastanr
Change-Id: I5db34283cf5ef02bce10827f2a1be7523b5852b9
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions