From bb55b7f4ec2019d23e05283dd71d2c3fce7d8551 Mon Sep 17 00:00:00 2001 From: Alec Mouri Date: Wed, 12 Feb 2020 17:35:01 -0800 Subject: [PATCH] Add global frame histograms into SF atoms Adding CPU and GPU histograms for regression tracking. Bug: 144037240 Test: builds Change-Id: I2f9aec93a78c9a28a8a393c3fc70eec6e8927f91 --- cmds/statsd/src/atoms.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 1bc235aa1d91a..26287a738beda 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -8000,6 +8000,18 @@ message SurfaceflingerStatsGlobalInfo { // of this pull. If this number grows prohibitively large, then this can // cause jank due to resource contention. optional int32 event_connection_count = 6; + // Set of timings measured from when SurfaceFlinger began compositing a + // frame, until the frame was requested to be presented to the display. This + // measures SurfaceFlinger's total CPU walltime on the critical path per + // frame. + optional FrameTimingHistogram frame_duration = 7 + [(android.os.statsd.log_mode) = MODE_BYTES]; + // Set of timings measured from when SurfaceFlinger first began using the + // GPU to composite a frame, until the GPU has finished compositing that + // frame. This measures the total additional time SurfaceFlinger needed to + // perform due to falling back into GPU composition. + optional FrameTimingHistogram render_engine_timing = 8 + [(android.os.statsd.log_mode) = MODE_BYTES]; } /**