//
// 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.

// @generated by protoc-gen-es v2.2.2 with parameter "target=ts"
// @generated from file protos/perfetto/config/gpu/gpu_counter_config.proto (package perfetto.protos, syntax proto2)
/* eslint-disable */

import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file protos/perfetto/config/gpu/gpu_counter_config.proto.
 */
export const file_protos_perfetto_config_gpu_gpu_counter_config: GenFile = /*@__PURE__*/
  fileDesc("CjNwcm90b3MvcGVyZmV0dG8vY29uZmlnL2dwdS9ncHVfY291bnRlcl9jb25maWcucHJvdG8SD3BlcmZldHRvLnByb3RvcyJ4ChBHcHVDb3VudGVyQ29uZmlnEhkKEWNvdW50ZXJfcGVyaW9kX25zGAEgASgEEhMKC2NvdW50ZXJfaWRzGAIgAygNEh0KFWluc3RydW1lbnRlZF9zYW1wbGluZxgDIAEoCBIVCg1maXhfZ3B1X2Nsb2NrGAQgASgI");

/**
 * @generated from message perfetto.protos.GpuCounterConfig
 */
export type GpuCounterConfig = Message<"perfetto.protos.GpuCounterConfig"> & {
  /**
   * Desired sampling interval for counters.
   *
   * @generated from field: optional uint64 counter_period_ns = 1;
   */
  counterPeriodNs: bigint;

  /**
   * List of counters to be sampled. Counter IDs correspond to the ones
   * described in GpuCounterSpec in the data source descriptor.
   *
   * @generated from field: repeated uint32 counter_ids = 2;
   */
  counterIds: number[];

  /**
   * Sample counters by instrumenting command buffers.
   *
   * @generated from field: optional bool instrumented_sampling = 3;
   */
  instrumentedSampling: boolean;

  /**
   * Fix gpu clock rate during trace session.
   *
   * @generated from field: optional bool fix_gpu_clock = 4;
   */
  fixGpuClock: boolean;
};

/**
 * Describes the message perfetto.protos.GpuCounterConfig.
 * Use `create(GpuCounterConfigSchema)` to create a new message.
 */
export const GpuCounterConfigSchema: GenMessage<GpuCounterConfig> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_config_gpu_gpu_counter_config, 0);

