perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
71 lines (62 loc) • 2.68 kB
text/typescript
//
// 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.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 { CSwitchEtwEvent, ReadyThreadEtwEvent } from "./etw_pb";
import { file_protos_perfetto_trace_etw_etw } from "./etw_pb";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/trace/etw/etw_event.proto.
*/
export const file_protos_perfetto_trace_etw_etw_event: GenFile = /*@__PURE__*/
fileDesc("Cilwcm90b3MvcGVyZmV0dG8vdHJhY2UvZXR3L2V0d19ldmVudC5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIqwBCg1FdHdUcmFjZUV2ZW50EhEKCXRpbWVzdGFtcBgBIAEoBBILCgNjcHUYBCABKA0SNAoIY19zd2l0Y2gYAiABKAsyIC5wZXJmZXR0by5wcm90b3MuQ1N3aXRjaEV0d0V2ZW50SAASPAoMcmVhZHlfdGhyZWFkGAMgASgLMiQucGVyZmV0dG8ucHJvdG9zLlJlYWR5VGhyZWFkRXR3RXZlbnRIAEIHCgVldmVudA", [file_protos_perfetto_trace_etw_etw]);
/**
* @generated from message perfetto.protos.EtwTraceEvent
*/
export type EtwTraceEvent = Message<"perfetto.protos.EtwTraceEvent"> & {
/**
* @generated from field: optional uint64 timestamp = 1;
*/
timestamp: bigint;
/**
* @generated from field: optional uint32 cpu = 4;
*/
cpu: number;
/**
* @generated from oneof perfetto.protos.EtwTraceEvent.event
*/
event: {
/**
* @generated from field: perfetto.protos.CSwitchEtwEvent c_switch = 2;
*/
value: CSwitchEtwEvent;
case: "cSwitch";
} | {
/**
* @generated from field: perfetto.protos.ReadyThreadEtwEvent ready_thread = 3;
*/
value: ReadyThreadEtwEvent;
case: "readyThread";
} | { case: undefined; value?: undefined };
};
/**
* Describes the message perfetto.protos.EtwTraceEvent.
* Use `create(EtwTraceEventSchema)` to create a new message.
*/
export const EtwTraceEventSchema: GenMessage<EtwTraceEvent> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_etw_etw_event, 0);