• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto3";
18
19package android.service;
20
21option java_multiple_files = true;
22option java_outer_classname = "GraphicsStatsServiceProto";
23option optimize_for = LITE_RUNTIME;
24
25message GraphicsStatsServiceDumpProto {
26    repeated GraphicsStatsProto stats = 1;
27}
28
29message GraphicsStatsProto {
30
31    // The package name of the app
32    string package_name = 1;
33
34    // The version code of the app
35    int32 version_code = 2;
36
37    // The start & end timestamps in UTC as
38    // milliseconds since January 1, 1970
39    // Compatible with java.util.Date#setTime()
40    int64 stats_start = 3;
41    int64 stats_end = 4;
42
43    // The aggregated statistics for the package
44    GraphicsStatsJankSummaryProto summary = 5;
45
46    // The frame time histogram for the package
47    repeated GraphicsStatsHistogramBucketProto histogram = 6;
48}
49
50message GraphicsStatsJankSummaryProto {
51    // Distinct frame count.
52    int32 total_frames = 1;
53
54    // Number of frames with slow render time. Frames are considered janky if
55    // they took more than a vsync interval (typically 16.667ms) to be rendered.
56    int32 janky_frames = 2;
57
58    // Number of "missed vsync" events.
59    int32 missed_vsync_count = 3;
60
61    // Number of "high input latency" events.
62    int32 high_input_latency_count = 4;
63
64    // Number of "slow UI thread" events.
65    int32 slow_ui_thread_count = 5;
66
67    // Number of "slow bitmap upload" events.
68    int32 slow_bitmap_upload_count = 6;
69
70    // Number of "slow draw" events.
71    int32 slow_draw_count = 7;
72}
73
74message GraphicsStatsHistogramBucketProto {
75    // Lower bound of render time in milliseconds.
76    int32 render_millis = 1;
77    // Number of frames in the bucket.
78    int32 frame_count = 2;
79}
80