UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

98 lines (85 loc) 3.46 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/android/rt_runtime_metric.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/android/rt_runtime_metric.proto. */ export const file_protos_perfetto_metrics_android_rt_runtime_metric: GenFile = /*@__PURE__*/ fileDesc("Cjdwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL3J0X3J1bnRpbWVfbWV0cmljLnByb3RvEg9wZXJmZXR0by5wcm90b3MixAEKFkFuZHJvaWRSdFJ1bnRpbWVNZXRyaWMSEwoLbWF4X3J1bnRpbWUYASABKAMSFgoOb3Zlcl81bXNfY291bnQYAiABKAMSSgoRbG9uZ2VzdF9ydF9zbGljZXMYAyADKAsyLy5wZXJmZXR0by5wcm90b3MuQW5kcm9pZFJ0UnVudGltZU1ldHJpYy5SdFNsaWNlGjEKB1J0U2xpY2USDQoFdG5hbWUYASABKAkSCgoCdHMYAiABKAMSCwoDZHVyGAMgASgD"); /** * measure max RT runtime and RT tasks running over 5ms. * * @generated from message perfetto.protos.AndroidRtRuntimeMetric */ export type AndroidRtRuntimeMetric = Message<"perfetto.protos.AndroidRtRuntimeMetric"> & { /** * max runtime of RT tasks * * @generated from field: optional int64 max_runtime = 1; */ maxRuntime: bigint; /** * how many RT tasks are over 5ms. * * @generated from field: optional int64 over_5ms_count = 2; */ over5msCount: bigint; /** * information for top 10 RT tasks * * @generated from field: repeated perfetto.protos.AndroidRtRuntimeMetric.RtSlice longest_rt_slices = 3; */ longestRtSlices: AndroidRtRuntimeMetric_RtSlice[]; }; /** * Describes the message perfetto.protos.AndroidRtRuntimeMetric. * Use `create(AndroidRtRuntimeMetricSchema)` to create a new message. */ export const AndroidRtRuntimeMetricSchema: GenMessage<AndroidRtRuntimeMetric> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_android_rt_runtime_metric, 0); /** * @generated from message perfetto.protos.AndroidRtRuntimeMetric.RtSlice */ export type AndroidRtRuntimeMetric_RtSlice = Message<"perfetto.protos.AndroidRtRuntimeMetric.RtSlice"> & { /** * thread name * * @generated from field: optional string tname = 1; */ tname: string; /** * timestamp * * @generated from field: optional int64 ts = 2; */ ts: bigint; /** * runtime of RT task * * @generated from field: optional int64 dur = 3; */ dur: bigint; }; /** * Describes the message perfetto.protos.AndroidRtRuntimeMetric.RtSlice. * Use `create(AndroidRtRuntimeMetric_RtSliceSchema)` to create a new message. */ export const AndroidRtRuntimeMetric_RtSliceSchema: GenMessage<AndroidRtRuntimeMetric_RtSlice> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_android_rt_runtime_metric, 0, 0);