UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

60 lines (52 loc) 2.29 kB
// // Copyright (C) 2022 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/trace_uuid.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/trace/trace_uuid.proto. */ export const file_protos_perfetto_trace_trace_uuid: GenFile = /*@__PURE__*/ fileDesc("CiZwcm90b3MvcGVyZmV0dG8vdHJhY2UvdHJhY2VfdXVpZC5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIiUKCVRyYWNlVXVpZBILCgNtc2IYASABKAMSCwoDbHNiGAIgASgD"); /** * A random unique ID that identifies the trace. * This message has been introduced in v32. Prior to that, the UUID was * only (optionally) present in the TraceConfig.trace_uuid_msb/lsb fields. * This has been moved to a standalone packet to deal with new use-cases for * go/gapless-aot, where the same tracing session can be serialized several * times, in which case the UUID is changed on each snapshot and does not match * the one in the TraceConfig. * * @generated from message perfetto.protos.TraceUuid */ export type TraceUuid = Message<"perfetto.protos.TraceUuid"> & { /** * @generated from field: optional int64 msb = 1; */ msb: bigint; /** * @generated from field: optional int64 lsb = 2; */ lsb: bigint; }; /** * Describes the message perfetto.protos.TraceUuid. * Use `create(TraceUuidSchema)` to create a new message. */ export const TraceUuidSchema: GenMessage<TraceUuid> = /*@__PURE__*/ messageDesc(file_protos_perfetto_trace_trace_uuid, 0);