Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b5cf2f91 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent ce8d4a38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment