summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Cosmin Băieș <cosminbaies@google.com> 2024-04-11 16:37:26 +0200
committer Cosmin Băieș <cosminbaies@google.com> 2024-04-11 16:37:26 +0200
commit3310a64dda1be0e29400f7db7e9ba314059a5496 (patch)
treea807c13c5b8623f7f560e52d1d842c6b6047ca02 /libs/androidfw/FileStream.cpp
parenta9ae219b82d26f77b02c96205e5e3d8d067f1e0d (diff)
Avoid nested tracing for showImePostLayout
When we have simultaenous show requests reaching scheduleShowImePostLayout before either can continue, we create traces for both using the same name and the same cookie, which results in undefined behaviour for the tracing logic. This moves the start of the WMS.showImePostLayout trace in ImeInsetsSourceProvider, and makes sure we only start the trace once, for the initial schedule call, measuring the end-to-end latency between scheduling showing the IME post layout and succeeding / aborting. Note this could slightly lower the values for this metric, as we start measuring slightly later, skipping three calls in WindowManagerService#showImePostLayout. Bug: 332898042 Test: atest ImePerfTest Change-Id: I4dae001a6030baf2a5339c0c1e8de33ccd89243a
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions