UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

79 lines (69 loc) 2.96 kB
// // Copyright (C) 2023 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/etw/etw_config.proto (package perfetto.protos, syntax proto2) /* eslint-disable */ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file protos/perfetto/config/etw/etw_config.proto. */ export const file_protos_perfetto_config_etw_etw_config: GenFile = /*@__PURE__*/ fileDesc("Citwcm90b3MvcGVyZmV0dG8vY29uZmlnL2V0dy9ldHdfY29uZmlnLnByb3RvEg9wZXJmZXR0by5wcm90b3MicwoJRXR3Q29uZmlnEjsKDGtlcm5lbF9mbGFncxgBIAMoDjIlLnBlcmZldHRvLnByb3Rvcy5FdHdDb25maWcuS2VybmVsRmxhZyIpCgpLZXJuZWxGbGFnEgsKB0NTV0lUQ0gQABIOCgpESVNQQVRDSEVSEAE"); /** * Proto definition based on the struct _EVENT_TRACE_PROPERTIES definition * See: https://learn.microsoft.com/en-us/windows/win32/api/evntrace/ * ns-evntrace-event_trace_properties * * @generated from message perfetto.protos.EtwConfig */ export type EtwConfig = Message<"perfetto.protos.EtwConfig"> & { /** * The kernel_flags determines the flags that will be used by the etw tracing * session. These kernel flags have been built to expose the useful events * captured from the kernel mode only. * * @generated from field: repeated perfetto.protos.EtwConfig.KernelFlag kernel_flags = 1; */ kernelFlags: EtwConfig_KernelFlag[]; }; /** * Describes the message perfetto.protos.EtwConfig. * Use `create(EtwConfigSchema)` to create a new message. */ export const EtwConfigSchema: GenMessage<EtwConfig> = /*@__PURE__*/ messageDesc(file_protos_perfetto_config_etw_etw_config, 0); /** * The KernelFlag represent list of kernel flags that we are intrested in. * To get a more extensive list run 'xperf -providers k'. * * @generated from enum perfetto.protos.EtwConfig.KernelFlag */ export enum EtwConfig_KernelFlag { /** * @generated from enum value: CSWITCH = 0; */ CSWITCH = 0, /** * @generated from enum value: DISPATCHER = 1; */ DISPATCHER = 1, } /** * Describes the enum perfetto.protos.EtwConfig.KernelFlag. */ export const EtwConfig_KernelFlagSchema: GenEnum<EtwConfig_KernelFlag> = /*@__PURE__*/ enumDesc(file_protos_perfetto_config_etw_etw_config, 0, 0);