perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
143 lines (119 loc) • 4.54 kB
text/typescript
//
// Copyright (C) 2020 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/trace/profiling/smaps.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/trace/profiling/smaps.proto.
*/
export const file_protos_perfetto_trace_profiling_smaps: GenFile = /*@__PURE__*/
fileDesc("Citwcm90b3MvcGVyZmV0dG8vdHJhY2UvcHJvZmlsaW5nL3NtYXBzLnByb3RvEg9wZXJmZXR0by5wcm90b3MigwMKClNtYXBzRW50cnkSDAoEcGF0aBgBIAEoCRIPCgdzaXplX2tiGAIgASgEEhgKEHByaXZhdGVfZGlydHlfa2IYAyABKAQSDwoHc3dhcF9rYhgEIAEoBBIRCglmaWxlX25hbWUYBSABKAkSFQoNc3RhcnRfYWRkcmVzcxgGIAEoBBIYChBtb2R1bGVfdGltZXN0YW1wGAcgASgEEhYKDm1vZHVsZV9kZWJ1Z2lkGAggASgJEhkKEW1vZHVsZV9kZWJ1Z19wYXRoGAkgASgJEhgKEHByb3RlY3Rpb25fZmxhZ3MYCiABKA0SIQoZcHJpdmF0ZV9jbGVhbl9yZXNpZGVudF9rYhgLIAEoBBIgChhzaGFyZWRfZGlydHlfcmVzaWRlbnRfa2IYDCABKAQSIAoYc2hhcmVkX2NsZWFuX3Jlc2lkZW50X2tiGA0gASgEEhEKCWxvY2tlZF9rYhgOIAEoBBIgChhwcm9wb3J0aW9uYWxfcmVzaWRlbnRfa2IYDyABKAQiSAoLU21hcHNQYWNrZXQSCwoDcGlkGAEgASgNEiwKB2VudHJpZXMYAiADKAsyGy5wZXJmZXR0by5wcm90b3MuU21hcHNFbnRyeQ");
/**
* @generated from message perfetto.protos.SmapsEntry
*/
export type SmapsEntry = Message<"perfetto.protos.SmapsEntry"> & {
/**
* @generated from field: optional string path = 1;
*/
path: string;
/**
* @generated from field: optional uint64 size_kb = 2;
*/
sizeKb: bigint;
/**
* @generated from field: optional uint64 private_dirty_kb = 3;
*/
privateDirtyKb: bigint;
/**
* @generated from field: optional uint64 swap_kb = 4;
*/
swapKb: bigint;
/**
* for field upload (instead of path).
*
* @generated from field: optional string file_name = 5;
*/
fileName: string;
/**
* TODO(crbug.com/1098746): Consider encoding this as incremental values.
*
* @generated from field: optional uint64 start_address = 6;
*/
startAddress: bigint;
/**
* @generated from field: optional uint64 module_timestamp = 7;
*/
moduleTimestamp: bigint;
/**
* @generated from field: optional string module_debugid = 8;
*/
moduleDebugid: string;
/**
* @generated from field: optional string module_debug_path = 9;
*/
moduleDebugPath: string;
/**
* @generated from field: optional uint32 protection_flags = 10;
*/
protectionFlags: number;
/**
* @generated from field: optional uint64 private_clean_resident_kb = 11;
*/
privateCleanResidentKb: bigint;
/**
* @generated from field: optional uint64 shared_dirty_resident_kb = 12;
*/
sharedDirtyResidentKb: bigint;
/**
* @generated from field: optional uint64 shared_clean_resident_kb = 13;
*/
sharedCleanResidentKb: bigint;
/**
* @generated from field: optional uint64 locked_kb = 14;
*/
lockedKb: bigint;
/**
* @generated from field: optional uint64 proportional_resident_kb = 15;
*/
proportionalResidentKb: bigint;
};
/**
* Describes the message perfetto.protos.SmapsEntry.
* Use `create(SmapsEntrySchema)` to create a new message.
*/
export const SmapsEntrySchema: GenMessage<SmapsEntry> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_profiling_smaps, 0);
/**
* @generated from message perfetto.protos.SmapsPacket
*/
export type SmapsPacket = Message<"perfetto.protos.SmapsPacket"> & {
/**
* @generated from field: optional uint32 pid = 1;
*/
pid: number;
/**
* @generated from field: repeated perfetto.protos.SmapsEntry entries = 2;
*/
entries: SmapsEntry[];
};
/**
* Describes the message perfetto.protos.SmapsPacket.
* Use `create(SmapsPacketSchema)` to create a new message.
*/
export const SmapsPacketSchema: GenMessage<SmapsPacket> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_profiling_smaps, 1);