summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimationUtil.cpp
diff options
context:
space:
mode:
author Mohamad Mahmoud <mohamadmahmoud@google.com> 2023-05-10 11:58:00 +0000
committer Mohamad Mahmoud <mohamadmahmoud@google.com> 2023-05-11 11:33:21 +0000
commit711859d0ee93b74e9787271f4137eee3f83bbcdf (patch)
treec6aef4bd9fce0f7601b80592f7473bdfcbfea233 /cmds/bootanimation/BootAnimationUtil.cpp
parent53466c0060f593f68add4a6451c59e6e277fdcbc (diff)
Move dumpAnrStateLocked off the critical ANR path
Shift the execution of dumpAnrStateLocked to the foreground thread to allow concurrent operation with the stack dump for the ANRing process. This significantly reduces the time to initiate the stack dump (~70 ms on a Pixel 5 device)for input dispatching timeout ANRs. This change addresses a major source of nativePollOnce (message queue idle) ANRs, which is the latency in initiating stack dumps. Bug: 272292150 Test: make sure dumpAnrStateLocked behaves as expected Test: Manual test: make sure the duration array has the correct value Test: atest FrameworksServicesTests:AnrHelperTest Change-Id: Ic7a2391c365501b4b4b19c0fbc4d3f22e37f1918
Diffstat (limited to 'cmds/bootanimation/BootAnimationUtil.cpp')
0 files changed, 0 insertions, 0 deletions