• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2019 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
21import "protos/perfetto/common/gpu_counter_descriptor.proto";
22
23message GpuCounterEvent {
24  // The first trace packet of each session should include counter_spec.
25  optional GpuCounterDescriptor counter_descriptor = 1;
26
27  message GpuCounter {
28    // required. Identifier for counter.
29    optional uint32 counter_id = 1;
30    // required. Value of the counter.
31    oneof value {
32      int64 int_value = 2;
33      double double_value = 3;
34    }
35  }
36  repeated GpuCounter counters = 2;
37
38  // optional. Identifier for GPU in a multi-gpu device.
39  optional int32 gpu_id = 3;
40}
41