diff options
| author | 2023-08-29 08:10:48 -0700 | |
|---|---|---|
| committer | 2023-10-23 23:02:32 +0000 | |
| commit | a46381666dcdfb2a9b1a96cbe0b547e28aac62b6 (patch) | |
| tree | eb92c10a0237b5c4efa3164ad7ccb111279dc7a8 /api/api_test.go | |
| parent | b7c89a1b33a3f7ce118ec70a355920342dcce936 (diff) | |
Support coroutine tracing in sysui
Also,
- Replace CoroutineDispatcher in CoroutinesModule with
CoroutineContext.
- Use different CoroutineContext in ConditionalRestarter to avoid
dependency cycle in CoroutinesModule when referencing
FeatureFlagsClassic.
Test: adb shell cmd statusbar flag coroutine_tracing off \
adb shell setprop log.tag.TraceUtils V \
adb logcat -s 'TraceUtils' \
1) Ensure no log messages appear when trace isn't being captured, and
2) Capture perfetto trace, ensure log message appears saying
"Experimental flag COROUTINE_TRACING is off."
Test: Turn flag on, use new traceCoroutine API on a "@Main
CoroutineDispatcher", capture perfetto trace, ensure log message says
"Current CoroutineContext is missing TraceContextElement."
Test: Turn flag on, capture perfetto trace, take a screenshot, ensure
trace sections for "RequestProcessor#..." show the events on the
thread the coroutine is executing on, that they stop when the
coroutine is suspended, and they start again when it's resumed.
Flag: LEGACY COROUTINE_TRACING DISABLED
Test: SystemUITests
Bug: 289353932
Change-Id: I7a5a4b697e93da73b271fb7c3966df8fc7cc5d15
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions