| /* |
| * Copyright (C) 2019 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| syntax = "proto2"; |
| |
| package perfetto.protos; |
| |
| import "protos/perfetto/common/gpu_counter_descriptor.proto"; |
| |
| message GpuCounterEvent { |
| // The first trace packet of each session should include counter_spec. |
| optional GpuCounterDescriptor counter_descriptor = 1; |
| |
| message GpuCounter { |
| // required. Identifier for counter. |
| optional uint32 counter_id = 1; |
| // required. Value of the counter. |
| oneof value { |
| int64 int_value = 2; |
| double double_value = 3; |
| } |
| } |
| repeated GpuCounter counters = 2; |
| |
| // optional. Identifier for GPU in a multi-gpu device. |
| optional int32 gpu_id = 3; |
| } |