UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

145 lines (125 loc) 5.43 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/metrics/android/lmk_reason_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 { AndroidProcessMetadata } from "./process_metadata_pb"; import { file_protos_perfetto_metrics_android_process_metadata } from "./process_metadata_pb"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file protos/perfetto/metrics/android/lmk_reason_metric.proto. */ export const file_protos_perfetto_metrics_android_lmk_reason_metric: GenFile = /*@__PURE__*/ fileDesc("Cjdwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL2xta19yZWFzb25fbWV0cmljLnByb3RvEg9wZXJmZXR0by5wcm90b3MitQMKFkFuZHJvaWRMbWtSZWFzb25NZXRyaWMSOQoEbG1rcxgBIAMoCzIrLnBlcmZldHRvLnByb3Rvcy5BbmRyb2lkTG1rUmVhc29uTWV0cmljLkxtaxrFAQoHUHJvY2VzcxI4Cgdwcm9jZXNzGAEgASgLMicucGVyZmV0dG8ucHJvdG9zLkFuZHJvaWRQcm9jZXNzTWV0YWRhdGESFQoNb29tX3Njb3JlX2FkahgCIAEoBRIMCgRzaXplGAMgASgDEhYKDmZpbGVfcnNzX2J5dGVzGAQgASgDEhYKDmFub25fcnNzX2J5dGVzGAUgASgDEhcKD3NobWVtX3Jzc19ieXRlcxgGIAEoAxISCgpzd2FwX2J5dGVzGAcgASgDGpcBCgNMbWsSFQoNb29tX3Njb3JlX2FkahgBIAEoBRIXCg9pb25faGVhcHNfYnl0ZXMYBCABKAMSHAoUc3lzdGVtX2lvbl9oZWFwX3NpemUYAiABKAMSQgoJcHJvY2Vzc2VzGAMgAygLMi8ucGVyZmV0dG8ucHJvdG9zLkFuZHJvaWRMbWtSZWFzb25NZXRyaWMuUHJvY2Vzcw", [file_protos_perfetto_metrics_android_process_metadata]); /** * Global process state at LMK time, used to identify potential culprits. * TODO: rename to AndroidLmkProcessState * * @generated from message perfetto.protos.AndroidLmkReasonMetric */ export type AndroidLmkReasonMetric = Message<"perfetto.protos.AndroidLmkReasonMetric"> & { /** * LMKs present in the trace, ordered on their timestamp. * * @generated from field: repeated perfetto.protos.AndroidLmkReasonMetric.Lmk lmks = 1; */ lmks: AndroidLmkReasonMetric_Lmk[]; }; /** * Describes the message perfetto.protos.AndroidLmkReasonMetric. * Use `create(AndroidLmkReasonMetricSchema)` to create a new message. */ export const AndroidLmkReasonMetricSchema: GenMessage<AndroidLmkReasonMetric> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_android_lmk_reason_metric, 0); /** * @generated from message perfetto.protos.AndroidLmkReasonMetric.Process */ export type AndroidLmkReasonMetric_Process = Message<"perfetto.protos.AndroidLmkReasonMetric.Process"> & { /** * @generated from field: optional perfetto.protos.AndroidProcessMetadata process = 1; */ process?: AndroidProcessMetadata; /** * OOM score adj of the process. * * @generated from field: optional int32 oom_score_adj = 2; */ oomScoreAdj: number; /** * RSS + swap. * * @generated from field: optional int64 size = 3; */ size: bigint; /** * @generated from field: optional int64 file_rss_bytes = 4; */ fileRssBytes: bigint; /** * @generated from field: optional int64 anon_rss_bytes = 5; */ anonRssBytes: bigint; /** * @generated from field: optional int64 shmem_rss_bytes = 6; */ shmemRssBytes: bigint; /** * @generated from field: optional int64 swap_bytes = 7; */ swapBytes: bigint; }; /** * Describes the message perfetto.protos.AndroidLmkReasonMetric.Process. * Use `create(AndroidLmkReasonMetric_ProcessSchema)` to create a new message. */ export const AndroidLmkReasonMetric_ProcessSchema: GenMessage<AndroidLmkReasonMetric_Process> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_android_lmk_reason_metric, 0, 0); /** * @generated from message perfetto.protos.AndroidLmkReasonMetric.Lmk */ export type AndroidLmkReasonMetric_Lmk = Message<"perfetto.protos.AndroidLmkReasonMetric.Lmk"> & { /** * OOM score adj of the LMK'ed process. * * @generated from field: optional int32 oom_score_adj = 1; */ oomScoreAdj: number; /** * Total size of the ION heap in bytes during this LMK. * * @generated from field: optional int64 ion_heaps_bytes = 4; */ ionHeapsBytes: bigint; /** * Deprecated. Prefer ion_heaps_bytes. * * @generated from field: optional int64 system_ion_heap_size = 2; */ systemIonHeapSize: bigint; /** * Processes present during this LMK. * * @generated from field: repeated perfetto.protos.AndroidLmkReasonMetric.Process processes = 3; */ processes: AndroidLmkReasonMetric_Process[]; }; /** * Describes the message perfetto.protos.AndroidLmkReasonMetric.Lmk. * Use `create(AndroidLmkReasonMetric_LmkSchema)` to create a new message. */ export const AndroidLmkReasonMetric_LmkSchema: GenMessage<AndroidLmkReasonMetric_Lmk> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_android_lmk_reason_metric, 0, 1);