New jank flag for showing CUJ names on screen
For interactions tracked with InteractionJankMonitor, display the CUJ
name in a box drawn over over the tracked View when using:
adb shell device_config \
put interaction_jank_monitor debug_overlay_enabled true
This feature can only be enabled on userdebug and eng builds.
The name of the CUJ will be shown when the CUJ begins, and sometimes it
may (unpredictably) continue to be shown for a few after the CUJ ends.
The CUJ names will be drawn as follows:
- Normal text indicates the CUJ is currently running
- Grey text indicates the CUJ ended normally and is no longer running
- Red text with a strikethrough indicates the CUJ was canceled or ended
abnormally
Launcher CUJs will be drawn with a CYAN background near the top of the
screen, and sysui CUJs will be drawn with a YELLOW background near the
bottom of the screen.
NOTE: This only works for interactions that have a ViewRootImpl because
rendering is done on a Canvas in the view. Surface-only CUJs will not
render CUJ names.
Test: atest InteractionJankMonitorTest FrameTrackerTest
Bug: 238923086
Change-Id: I3a781e3465057b44acc1edf16ea6cc3317ee7720
Loading
Please register or sign in to comment