UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

103 lines (89 loc) 4.13 kB
// // Copyright (C) 2021 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/camera_unagg_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/camera_unagg_metric.proto. */ export const file_protos_perfetto_metrics_android_camera_unagg_metric: GenFile = /*@__PURE__*/ fileDesc("Cjlwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL2NhbWVyYV91bmFnZ19tZXRyaWMucHJvdG8SD3BlcmZldHRvLnByb3RvcyLuAQofQW5kcm9pZENhbWVyYVVuYWdncmVnYXRlZE1ldHJpYxJOCg5nY19yc3NfYW5kX2RtYRgBIAMoCzI2LnBlcmZldHRvLnByb3Rvcy5BbmRyb2lkQ2FtZXJhVW5hZ2dyZWdhdGVkTWV0cmljLlZhbHVlGnsKBVZhbHVlEgoKAnRzGAEgASgDEhMKC2djYV9yc3NfdmFsGAIgASgBEhMKC2hhbF9yc3NfdmFsGAMgASgBEhwKFGNhbWVyYXNlcnZlcl9yc3NfdmFsGAQgASgBEg8KB2RtYV92YWwYBSABKAESDQoFdmFsdWUYBiABKAE"); /** * @generated from message perfetto.protos.AndroidCameraUnaggregatedMetric */ export type AndroidCameraUnaggregatedMetric = Message<"perfetto.protos.AndroidCameraUnaggregatedMetric"> & { /** * Timeseries for the sum of DMA and RSS across GCA, cameraserver * and HAL. This provides a single number for the memory * pressure using the camera is putting on the rest of the * system. * * Note: this number assumes that all DMA pressure is coming * from the camera as this is usually a pretty good * approximation. Being more accurate here would increase the * complexity of the metric significantly. * * Note: if there are multiple GCA/cameraserver/HAL processes * in the trace, this metric will simply take the latest * one in the trace and ignore the others. * * @generated from field: repeated perfetto.protos.AndroidCameraUnaggregatedMetric.Value gc_rss_and_dma = 1; */ gcRssAndDma: AndroidCameraUnaggregatedMetric_Value[]; }; /** * Describes the message perfetto.protos.AndroidCameraUnaggregatedMetric. * Use `create(AndroidCameraUnaggregatedMetricSchema)` to create a new message. */ export const AndroidCameraUnaggregatedMetricSchema: GenMessage<AndroidCameraUnaggregatedMetric> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_android_camera_unagg_metric, 0); /** * @generated from message perfetto.protos.AndroidCameraUnaggregatedMetric.Value */ export type AndroidCameraUnaggregatedMetric_Value = Message<"perfetto.protos.AndroidCameraUnaggregatedMetric.Value"> & { /** * @generated from field: optional int64 ts = 1; */ ts: bigint; /** * @generated from field: optional double gca_rss_val = 2; */ gcaRssVal: number; /** * @generated from field: optional double hal_rss_val = 3; */ halRssVal: number; /** * @generated from field: optional double cameraserver_rss_val = 4; */ cameraserverRssVal: number; /** * @generated from field: optional double dma_val = 5; */ dmaVal: number; /** * @generated from field: optional double value = 6; */ value: number; }; /** * Describes the message perfetto.protos.AndroidCameraUnaggregatedMetric.Value. * Use `create(AndroidCameraUnaggregatedMetric_ValueSchema)` to create a new message. */ export const AndroidCameraUnaggregatedMetric_ValueSchema: GenMessage<AndroidCameraUnaggregatedMetric_Value> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_android_camera_unagg_metric, 0, 0);