xref: /aosp_15_r20/external/perfetto/protos/perfetto/metrics/android/g2d_metric.proto (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
1/*
2 * Copyright (C) 2021 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 = "proto2";
18
19package perfetto.protos;
20
21message G2dMetrics {
22  message G2dInstance {
23    // G2d name.
24    optional string name = 1;
25
26    optional uint32 frame_count = 5;
27    optional uint32 error_count = 6;
28
29    optional double max_dur_ms = 7;
30    optional double min_dur_ms = 8;
31    optional double avg_dur_ms = 9;
32
33    // Removed: was int64 versions of max_dur_ns, min_dur_ns and avg_dur_ns.
34    reserved 2 to 4;
35  }
36  message G2dMetric {
37    // G2D Metric for each G2D Instance.
38    repeated G2dInstance instances = 1;
39
40    // the number of frames processed by G2D
41    optional uint32 frame_count = 5;
42    // the number of error events
43    optional uint32 error_count = 6;
44
45    // max/min/avg G2d frame durations for all instances.
46    optional double max_dur_ms = 7;
47    optional double min_dur_ms = 8;
48    optional double avg_dur_ms = 9;
49
50    // Removed: was int64 versions of max_dur_ns, min_dur_ns and avg_dur_ns.
51    reserved 2 to 4;
52  }
53
54  optional G2dMetric g2d_hw = 1;
55  optional G2dMetric g2d_sw = 2;
56}
57