UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

170 lines (144 loc) 6.59 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/android/java_heap_class_stats.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/java_heap_class_stats.proto. */ export const file_protos_perfetto_metrics_android_java_heap_class_stats: GenFile = /*@__PURE__*/ fileDesc("Cjtwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL2phdmFfaGVhcF9jbGFzc19zdGF0cy5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIpUFChJKYXZhSGVhcENsYXNzU3RhdHMSSQoOaW5zdGFuY2Vfc3RhdHMYASADKAsyMS5wZXJmZXR0by5wcm90b3MuSmF2YUhlYXBDbGFzc1N0YXRzLkluc3RhbmNlU3RhdHMawwIKCVR5cGVDb3VudBIRCgl0eXBlX25hbWUYASABKAkSGwoTaXNfbGliY29yZV9vcl9hcnJheRgMIAEoCBIRCglvYmpfY291bnQYAiABKAMSEgoKc2l6ZV9ieXRlcxgDIAEoAxIZChFuYXRpdmVfc2l6ZV9ieXRlcxgEIAEoAxIbChNyZWFjaGFibGVfb2JqX2NvdW50GAUgASgDEhwKFHJlYWNoYWJsZV9zaXplX2J5dGVzGAYgASgDEiMKG3JlYWNoYWJsZV9uYXRpdmVfc2l6ZV9ieXRlcxgHIAEoAxIbChNkb21pbmF0ZWRfb2JqX2NvdW50GAggASgDEhwKFGRvbWluYXRlZF9zaXplX2J5dGVzGAkgASgDEiMKG2RvbWluYXRlZF9uYXRpdmVfc2l6ZV9ieXRlcxgKIAEoA0oECAsQDBpXCgZTYW1wbGUSCgoCdHMYASABKAMSQQoKdHlwZV9jb3VudBgCIAMoCzItLnBlcmZldHRvLnByb3Rvcy5KYXZhSGVhcENsYXNzU3RhdHMuVHlwZUNvdW50GpQBCg1JbnN0YW5jZVN0YXRzEgwKBHVwaWQYASABKA0SOAoHcHJvY2VzcxgCIAEoCzInLnBlcmZldHRvLnByb3Rvcy5BbmRyb2lkUHJvY2Vzc01ldGFkYXRhEjsKB3NhbXBsZXMYAyADKAsyKi5wZXJmZXR0by5wcm90b3MuSmF2YUhlYXBDbGFzc1N0YXRzLlNhbXBsZQ", [file_protos_perfetto_metrics_android_process_metadata]); /** * @generated from message perfetto.protos.JavaHeapClassStats */ export type JavaHeapClassStats = Message<"perfetto.protos.JavaHeapClassStats"> & { /** * @generated from field: repeated perfetto.protos.JavaHeapClassStats.InstanceStats instance_stats = 1; */ instanceStats: JavaHeapClassStats_InstanceStats[]; }; /** * Describes the message perfetto.protos.JavaHeapClassStats. * Use `create(JavaHeapClassStatsSchema)` to create a new message. */ export const JavaHeapClassStatsSchema: GenMessage<JavaHeapClassStats> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_android_java_heap_class_stats, 0); /** * Next id: 13 * * @generated from message perfetto.protos.JavaHeapClassStats.TypeCount */ export type JavaHeapClassStats_TypeCount = Message<"perfetto.protos.JavaHeapClassStats.TypeCount"> & { /** * @generated from field: optional string type_name = 1; */ typeName: string; /** * @generated from field: optional bool is_libcore_or_array = 12; */ isLibcoreOrArray: boolean; /** * @generated from field: optional int64 obj_count = 2; */ objCount: bigint; /** * @generated from field: optional int64 size_bytes = 3; */ sizeBytes: bigint; /** * @generated from field: optional int64 native_size_bytes = 4; */ nativeSizeBytes: bigint; /** * @generated from field: optional int64 reachable_obj_count = 5; */ reachableObjCount: bigint; /** * @generated from field: optional int64 reachable_size_bytes = 6; */ reachableSizeBytes: bigint; /** * @generated from field: optional int64 reachable_native_size_bytes = 7; */ reachableNativeSizeBytes: bigint; /** * @generated from field: optional int64 dominated_obj_count = 8; */ dominatedObjCount: bigint; /** * @generated from field: optional int64 dominated_size_bytes = 9; */ dominatedSizeBytes: bigint; /** * @generated from field: optional int64 dominated_native_size_bytes = 10; */ dominatedNativeSizeBytes: bigint; }; /** * Describes the message perfetto.protos.JavaHeapClassStats.TypeCount. * Use `create(JavaHeapClassStats_TypeCountSchema)` to create a new message. */ export const JavaHeapClassStats_TypeCountSchema: GenMessage<JavaHeapClassStats_TypeCount> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_android_java_heap_class_stats, 0, 0); /** * @generated from message perfetto.protos.JavaHeapClassStats.Sample */ export type JavaHeapClassStats_Sample = Message<"perfetto.protos.JavaHeapClassStats.Sample"> & { /** * @generated from field: optional int64 ts = 1; */ ts: bigint; /** * @generated from field: repeated perfetto.protos.JavaHeapClassStats.TypeCount type_count = 2; */ typeCount: JavaHeapClassStats_TypeCount[]; }; /** * Describes the message perfetto.protos.JavaHeapClassStats.Sample. * Use `create(JavaHeapClassStats_SampleSchema)` to create a new message. */ export const JavaHeapClassStats_SampleSchema: GenMessage<JavaHeapClassStats_Sample> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_android_java_heap_class_stats, 0, 1); /** * Stats per process. One sample per dump (with continuous dump you can * have more samples differentiated by ts). * * @generated from message perfetto.protos.JavaHeapClassStats.InstanceStats */ export type JavaHeapClassStats_InstanceStats = Message<"perfetto.protos.JavaHeapClassStats.InstanceStats"> & { /** * @generated from field: optional uint32 upid = 1; */ upid: number; /** * @generated from field: optional perfetto.protos.AndroidProcessMetadata process = 2; */ process?: AndroidProcessMetadata; /** * @generated from field: repeated perfetto.protos.JavaHeapClassStats.Sample samples = 3; */ samples: JavaHeapClassStats_Sample[]; }; /** * Describes the message perfetto.protos.JavaHeapClassStats.InstanceStats. * Use `create(JavaHeapClassStats_InstanceStatsSchema)` to create a new message. */ export const JavaHeapClassStats_InstanceStatsSchema: GenMessage<JavaHeapClassStats_InstanceStats> = /*@__PURE__*/ messageDesc(file_protos_perfetto_metrics_android_java_heap_class_stats, 0, 2);