perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
252 lines • 7.61 kB
TypeScript
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/trace/profiling/profile_common.proto.
*/
export declare const file_protos_perfetto_trace_profiling_profile_common: GenFile;
/**
* The interning fields in this file can refer to 2 different intern tables,
* depending on the message they are used in. If the interned fields are present
* in ProfilePacket proto, then the intern tables included in the ProfilePacket
* should be used. If the intered fields are present in the
* StreamingProfilePacket proto, then the intern tables included in all of the
* previous InternedData message with same sequence ID should be used.
* TODO(fmayer): Move to the intern tables to a common location.
*
* @generated from message perfetto.protos.InternedString
*/
export type InternedString = Message<"perfetto.protos.InternedString"> & {
/**
* @generated from field: optional uint64 iid = 1;
*/
iid: bigint;
/**
* @generated from field: optional bytes str = 2;
*/
str: Uint8Array;
};
/**
* Describes the message perfetto.protos.InternedString.
* Use `create(InternedStringSchema)` to create a new message.
*/
export declare const InternedStringSchema: GenMessage<InternedString>;
/**
* A symbol field that is emitted after the trace is written. These tables would
* be appended as the last packets in the trace that the profiler will use, so
* that the actual trace need not be rewritten to symbolize the profiles.
*
* @generated from message perfetto.protos.ProfiledFrameSymbols
*/
export type ProfiledFrameSymbols = Message<"perfetto.protos.ProfiledFrameSymbols"> & {
/**
* Use the frame id as the interning key for the symbols.
*
* @generated from field: optional uint64 frame_iid = 1;
*/
frameIid: bigint;
/**
* key to InternedString
*
* @generated from field: repeated uint64 function_name_id = 2;
*/
functionNameId: bigint[];
/**
* key to InternedString
*
* @generated from field: repeated uint64 file_name_id = 3;
*/
fileNameId: bigint[];
/**
* @generated from field: repeated uint32 line_number = 4;
*/
lineNumber: number[];
};
/**
* Describes the message perfetto.protos.ProfiledFrameSymbols.
* Use `create(ProfiledFrameSymbolsSchema)` to create a new message.
*/
export declare const ProfiledFrameSymbolsSchema: GenMessage<ProfiledFrameSymbols>;
/**
* @generated from message perfetto.protos.Line
*/
export type Line = Message<"perfetto.protos.Line"> & {
/**
* @generated from field: optional string function_name = 1;
*/
functionName: string;
/**
* @generated from field: optional string source_file_name = 2;
*/
sourceFileName: string;
/**
* @generated from field: optional uint32 line_number = 3;
*/
lineNumber: number;
};
/**
* Describes the message perfetto.protos.Line.
* Use `create(LineSchema)` to create a new message.
*/
export declare const LineSchema: GenMessage<Line>;
/**
* Symbols for a given address in a module.
*
* @generated from message perfetto.protos.AddressSymbols
*/
export type AddressSymbols = Message<"perfetto.protos.AddressSymbols"> & {
/**
* @generated from field: optional uint64 address = 1;
*/
address: bigint;
/**
* Source lines that correspond to this address.
*
* These are repeated because when inlining happens, multiple functions'
* frames can be at a single address. Imagine function Foo calling the
* std::vector<int> constructor, which gets inlined at 0xf00. We then get
* both Foo and the std::vector<int> constructor when we symbolize the
* address.
*
* @generated from field: repeated perfetto.protos.Line lines = 2;
*/
lines: Line[];
};
/**
* Describes the message perfetto.protos.AddressSymbols.
* Use `create(AddressSymbolsSchema)` to create a new message.
*/
export declare const AddressSymbolsSchema: GenMessage<AddressSymbols>;
/**
* Symbols for addresses seen in a module.
*
* @generated from message perfetto.protos.ModuleSymbols
*/
export type ModuleSymbols = Message<"perfetto.protos.ModuleSymbols"> & {
/**
* Fully qualified path to the mapping.
* E.g. /system/lib64/libc.so.
*
* @generated from field: optional string path = 1;
*/
path: string;
/**
* .note.gnu.build-id on Linux (not hex encoded).
* uuid on MacOS.
* Module GUID on Windows.
*
* @generated from field: optional string build_id = 2;
*/
buildId: string;
/**
* @generated from field: repeated perfetto.protos.AddressSymbols address_symbols = 3;
*/
addressSymbols: AddressSymbols[];
};
/**
* Describes the message perfetto.protos.ModuleSymbols.
* Use `create(ModuleSymbolsSchema)` to create a new message.
*/
export declare const ModuleSymbolsSchema: GenMessage<ModuleSymbols>;
/**
* @generated from message perfetto.protos.Mapping
*/
export type Mapping = Message<"perfetto.protos.Mapping"> & {
/**
* Interning key.
*
* @generated from field: optional uint64 iid = 1;
*/
iid: bigint;
/**
* Interning key.
*
* @generated from field: optional uint64 build_id = 2;
*/
buildId: bigint;
/**
* This is not set on Android 10.
*
* @generated from field: optional uint64 exact_offset = 8;
*/
exactOffset: bigint;
/**
* @generated from field: optional uint64 start_offset = 3;
*/
startOffset: bigint;
/**
* @generated from field: optional uint64 start = 4;
*/
start: bigint;
/**
* @generated from field: optional uint64 end = 5;
*/
end: bigint;
/**
* @generated from field: optional uint64 load_bias = 6;
*/
loadBias: bigint;
/**
* E.g. ["system", "lib64", "libc.so"]
* id of string.
*
* @generated from field: repeated uint64 path_string_ids = 7;
*/
pathStringIds: bigint[];
};
/**
* Describes the message perfetto.protos.Mapping.
* Use `create(MappingSchema)` to create a new message.
*/
export declare const MappingSchema: GenMessage<Mapping>;
/**
* @generated from message perfetto.protos.Frame
*/
export type Frame = Message<"perfetto.protos.Frame"> & {
/**
* Interning key
*
* @generated from field: optional uint64 iid = 1;
*/
iid: bigint;
/**
* E.g. "fopen"
* id of string.
*
* @generated from field: optional uint64 function_name_id = 2;
*/
functionNameId: bigint;
/**
* @generated from field: optional uint64 mapping_id = 3;
*/
mappingId: bigint;
/**
* @generated from field: optional uint64 rel_pc = 4;
*/
relPc: bigint;
};
/**
* Describes the message perfetto.protos.Frame.
* Use `create(FrameSchema)` to create a new message.
*/
export declare const FrameSchema: GenMessage<Frame>;
/**
* @generated from message perfetto.protos.Callstack
*/
export type Callstack = Message<"perfetto.protos.Callstack"> & {
/**
* @generated from field: optional uint64 iid = 1;
*/
iid: bigint;
/**
* Frames of this callstack. Bottom frame first.
*
* @generated from field: repeated uint64 frame_ids = 2;
*/
frameIds: bigint[];
};
/**
* Describes the message perfetto.protos.Callstack.
* Use `create(CallstackSchema)` to create a new message.
*/
export declare const CallstackSchema: GenMessage<Callstack>;
//# sourceMappingURL=profile_common_pb.d.ts.map