• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 int64 max_dur_ns = 2;
27    optional int64 min_dur_ns = 3;
28    optional int64 avg_dur_ns = 4;
29    optional uint32 frame_count = 5;
30    optional uint32 error_count = 6;
31  }
32  message G2dMetric {
33    // G2D Metric for each G2D Instance.
34    repeated G2dInstance instances = 1;
35
36    // max/min/avg G2d frame durations for all instances.
37    optional int64 max_dur_ns = 2;
38    optional int64 min_dur_ns = 3;
39    optional int64 avg_dur_ns = 4;
40
41    // the number of frames processed by G2D
42    optional uint32 frame_count = 5;
43    // the number of error events
44    optional uint32 error_count = 6;
45  }
46
47  optional G2dMetric g2d_hw = 1;
48  optional G2dMetric g2d_sw = 2;
49}
50