UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

58 lines (50 loc) 2.44 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/trace/etw/etw_event_bundle.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 { EtwTraceEvent } from "./etw_event_pb"; import { file_protos_perfetto_trace_etw_etw_event } from "./etw_event_pb"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file protos/perfetto/trace/etw/etw_event_bundle.proto. */ export const file_protos_perfetto_trace_etw_etw_event_bundle: GenFile = /*@__PURE__*/ fileDesc("CjBwcm90b3MvcGVyZmV0dG8vdHJhY2UvZXR3L2V0d19ldmVudF9idW5kbGUucHJvdG8SD3BlcmZldHRvLnByb3RvcyJRChNFdHdUcmFjZUV2ZW50QnVuZGxlEgsKA2NwdRgBIAEoDRItCgVldmVudBgCIAMoCzIeLnBlcmZldHRvLnByb3Rvcy5FdHdUcmFjZUV2ZW50", [file_protos_perfetto_trace_etw_etw_event]); /** * The result of tracing one or more etw event uses per-processor buffers where * an in-use buffer is assigned to each processor at all times. Therefore, * collecting multiple events they should already be synchronized. * * @generated from message perfetto.protos.EtwTraceEventBundle */ export type EtwTraceEventBundle = Message<"perfetto.protos.EtwTraceEventBundle"> & { /** * @generated from field: optional uint32 cpu = 1; */ cpu: number; /** * @generated from field: repeated perfetto.protos.EtwTraceEvent event = 2; */ event: EtwTraceEvent[]; }; /** * Describes the message perfetto.protos.EtwTraceEventBundle. * Use `create(EtwTraceEventBundleSchema)` to create a new message. */ export const EtwTraceEventBundleSchema: GenMessage<EtwTraceEventBundle> = /*@__PURE__*/ messageDesc(file_protos_perfetto_trace_etw_etw_event_bundle, 0);