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

Skip to content
Commit 3310a64d authored by Cosmin Băieș's avatar Cosmin Băieș
Browse files

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
parent a9ae219b
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