UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

111 lines (96 loc) 3.77 kB
// // Copyright (C) 2024 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/metrics/chrome/histogram_summaries.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/metrics/chrome/histogram_summaries.proto. */ export const file_protos_perfetto_metrics_chrome_histogram_summaries: GenFile = /*@__PURE__*/ fileDesc("Cjhwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9jaHJvbWUvaGlzdG9ncmFtX3N1bW1hcmllcy5wcm90bxIPcGVyZmV0dG8ucHJvdG9zInEKEEhpc3RvZ3JhbVN1bW1hcnkSDAoEbmFtZRgBIAEoCRIMCgRtZWFuGAIgASgDEg0KBWNvdW50GAMgASgNEgsKA3N1bRgEIAEoAxILCgNtYXgYBSABKAMSCwoDcDkwGAYgASgDEgsKA3A1MBgHIAEoAyJYChhDaHJvbWVIaXN0b2dyYW1TdW1tYXJpZXMSPAoRaGlzdG9ncmFtX3N1bW1hcnkYASADKAsyIS5wZXJmZXR0by5wcm90b3MuSGlzdG9ncmFtU3VtbWFyeQ"); /** * @generated from message perfetto.protos.HistogramSummary */ export type HistogramSummary = Message<"perfetto.protos.HistogramSummary"> & { /** * The name of the histogram event * * @generated from field: optional string name = 1; */ name: string; /** * The avarage value of the histogram event * * @generated from field: optional int64 mean = 2; */ mean: bigint; /** * The number of the histogram event in the trace track * * @generated from field: optional uint32 count = 3; */ count: number; /** * The sum of value of the histogram event * * @generated from field: optional int64 sum = 4; */ sum: bigint; /** * The maximum value of the histogram event * * @generated from field: optional int64 max = 5; */ max: bigint; /** * The 90 percentile value of the histogram event * * @generated from field: optional int64 p90 = 6; */ p90: bigint; /** * The 50 percentile (median) value of the histogram event * * @generated from field: optional int64 p50 = 7; */ p50: bigint; }; /** * Describes the message perfetto.protos.HistogramSummary. * Use `create(HistogramSummarySchema)` to create a new message. */ export const HistogramSummarySchema: GenMessage<HistogramSummary> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_chrome_histogram_summaries, 0); /** * The list of the summary of Chrome Histograms in trace track events. * This includes the statistic information of each histograms from Chrome. * * @generated from message perfetto.protos.ChromeHistogramSummaries */ export type ChromeHistogramSummaries = Message<"perfetto.protos.ChromeHistogramSummaries"> & { /** * @generated from field: repeated perfetto.protos.HistogramSummary histogram_summary = 1; */ histogramSummary: HistogramSummary[]; }; /** * Describes the message perfetto.protos.ChromeHistogramSummaries. * Use `create(ChromeHistogramSummariesSchema)` to create a new message. */ export const ChromeHistogramSummariesSchema: GenMessage<ChromeHistogramSummaries> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_chrome_histogram_summaries, 1);