UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

91 lines (79 loc) 3.48 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/metrics/chrome/long_latency.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/long_latency.proto. */ export const file_protos_perfetto_metrics_chrome_long_latency: GenFile = /*@__PURE__*/ fileDesc("CjFwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9jaHJvbWUvbG9uZ19sYXRlbmN5LnByb3RvEg9wZXJmZXR0by5wcm90b3MiqwEKEUNocm9tZUxvbmdMYXRlbmN5EkQKDGxvbmdfbGF0ZW5jeRgBIAMoCzIuLnBlcmZldHRvLnByb3Rvcy5DaHJvbWVMb25nTGF0ZW5jeS5Mb25nTGF0ZW5jeRpQCgtMb25nTGF0ZW5jeRIKCgJ0cxgBIAEoAxISCgpldmVudF90eXBlGAIgASgJEhQKDHByb2Nlc3NfbmFtZRgDIAEoCRILCgNwaWQYBCABKAM"); /** * Information of a frame associated with long latency input events. * The latency info is extracted from EventLatency slices. * * @generated from message perfetto.protos.ChromeLongLatency */ export type ChromeLongLatency = Message<"perfetto.protos.ChromeLongLatency"> & { /** * @generated from field: repeated perfetto.protos.ChromeLongLatency.LongLatency long_latency = 1; */ longLatency: ChromeLongLatency_LongLatency[]; }; /** * Describes the message perfetto.protos.ChromeLongLatency. * Use `create(ChromeLongLatencySchema)` to create a new message. */ export const ChromeLongLatencySchema: GenMessage<ChromeLongLatency> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_chrome_long_latency, 0); /** * @generated from message perfetto.protos.ChromeLongLatency.LongLatency */ export type ChromeLongLatency_LongLatency = Message<"perfetto.protos.ChromeLongLatency.LongLatency"> & { /** * The ending timestamp of the input event, i.e. the presentation time of * the frame that contains updates triggered by the input event. * * @generated from field: optional int64 ts = 1; */ ts: bigint; /** * The type of the input event as reported in the EventLatency slice, * e.g. 'GestureScrollUpdate'. * * @generated from field: optional string event_type = 2; */ eventType: string; /** * The name and pid of the process where the EventLatency slice * originates from. * * @generated from field: optional string process_name = 3; */ processName: string; /** * @generated from field: optional int64 pid = 4; */ pid: bigint; }; /** * Describes the message perfetto.protos.ChromeLongLatency.LongLatency. * Use `create(ChromeLongLatency_LongLatencySchema)` to create a new message. */ export const ChromeLongLatency_LongLatencySchema: GenMessage<ChromeLongLatency_LongLatency> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_chrome_long_latency, 0, 0);