summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2024-01-17 11:31:33 -0800
committer Lee Shombert <shombert@google.com> 2024-01-18 09:46:08 -0800
commit076a3683ee874ee1a4347de95877ff44439cdbe0 (patch)
tree9a03d1baa90b45e55d1bf1a4e8c36281099da537 /libs/androidfw/FileStream.cpp
parent2014926d3f0cc6633827afc88d22d16b2d1405c4 (diff)
Add ANR expiration trace points
This adds a trace point to the AnrTimer track for every expired ANR. The trace point is the formatted string "%s(%d,%d,%s,%d)": * The operation (currently "expired") * The Linux pid that expired * The Linux uid that expired * The ANR category * The elapsed time (in ms) since the timer was scheduled The elapsed time can be used to look backward in a trace to create a synthetic slice that covers the span from when the timer was scheduled to when it expired. The trace point begins a slice, which ends when the client accepts or discards the ANR. This tracing is always on. ANR expiration is uncommon, so there are no performance issues. Tested manually by generating an ANR and examining the resulting perfetto trace. Test: atest * FrameworksServicesTests:com.android.server.am * FrameworksMockingServicesTests:com.android.server.am * CtsAppTestCases * FrameworksServicesTests:AnrTimerTest Bug: 319454931 Change-Id: Ie8c2ee28bca2b105fafebbbe84930e8f58e90598
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions