diff options
author | Riddle Hsu <riddlehsu@google.com> | 2019-11-26 15:23:12 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-01-07 17:30:54 +0000 |
commit | 1286b571ffa6c8a34eb464edf27d266fe8c8ea24 (patch) | |
tree | e70a1c988ff9e110b118cfc89bdbb677eb728fdf /rs/java/android/renderscript/ProgramStore.java | |
parent | fbe8eca9ed225503da536bcef32d7191d95f160f (diff) |
Add pre-dump for input ANR
If an input ANR is caused by the lock of window manager
or activity manager is held for a long time, we usually
get an unhelpful stack traces because the ANR reporting
is also blocked by the locks.
The pre-dump checks if the locks cannot be acquired within
a timeout, then dump the stack trace at the beginning of
notifying ANR.
Bug: 144987910
Test: 1. Launch a simple app.
2. Set break-points inside the lock of window manager
and activity manager.
3. Press back key and wait 5s.
4. Check the path /data/anr/ in device. There should
be a filename ends with "_pre".
Change-Id: I9831a31e17661d822572c73e64fe9980fe018b22
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions