UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

91 lines (78 loc) 3.22 kB
// // 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/trace/track_event/chrome_histogram_sample.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/track_event/chrome_histogram_sample.proto. */ export const file_protos_perfetto_trace_track_event_chrome_histogram_sample: GenFile = /*@__PURE__*/ fileDesc("Cj9wcm90b3MvcGVyZmV0dG8vdHJhY2UvdHJhY2tfZXZlbnQvY2hyb21lX2hpc3RvZ3JhbV9zYW1wbGUucHJvdG8SD3BlcmZldHRvLnByb3RvcyIqCg1IaXN0b2dyYW1OYW1lEgsKA2lpZBgBIAEoBBIMCgRuYW1lGAIgASgJIloKFUNocm9tZUhpc3RvZ3JhbVNhbXBsZRIRCgluYW1lX2hhc2gYASABKAQSDAoEbmFtZRgCIAEoCRIOCgZzYW1wbGUYAyABKAMSEAoIbmFtZV9paWQYBCABKAQ"); /** * @generated from message perfetto.protos.HistogramName */ export type HistogramName = Message<"perfetto.protos.HistogramName"> & { /** * @generated from field: optional uint64 iid = 1; */ iid: bigint; /** * @generated from field: optional string name = 2; */ name: string; }; /** * Describes the message perfetto.protos.HistogramName. * Use `create(HistogramNameSchema)` to create a new message. */ export const HistogramNameSchema: GenMessage<HistogramName> = /*@__PURE__*/ messageDesc(file_protos_perfetto_trace_track_event_chrome_histogram_sample, 0); /** * An individual histogram sample logged via Chrome's UMA metrics system. * * @generated from message perfetto.protos.ChromeHistogramSample */ export type ChromeHistogramSample = Message<"perfetto.protos.ChromeHistogramSample"> & { /** * MD5 hash of the metric name. Either |name_hash| or |name|/|name_iid| or * both must be present. * * @generated from field: optional uint64 name_hash = 1; */ nameHash: bigint; /** * @generated from field: optional string name = 2; */ name: string; /** * @generated from field: optional int64 sample = 3; */ sample: bigint; /** * Interned HistogramName. Only one of |name|, |name_iid| can be set. * * @generated from field: optional uint64 name_iid = 4; */ nameIid: bigint; }; /** * Describes the message perfetto.protos.ChromeHistogramSample. * Use `create(ChromeHistogramSampleSchema)` to create a new message. */ export const ChromeHistogramSampleSchema: GenMessage<ChromeHistogramSample> = /*@__PURE__*/ messageDesc(file_protos_perfetto_trace_track_event_chrome_histogram_sample, 1);