perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
73 lines • 2.3 kB
TypeScript
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/trace_processor/stack.proto.
*/
export declare const file_protos_perfetto_trace_processor_stack: GenFile;
/**
* Representation of a stack. To be used as input to generate flame charts
* or pprof.
*
* @generated from message perfetto.protos.Stack
*/
export type Stack = Message<"perfetto.protos.Stack"> & {
/**
* Ordered list of "frames" in the stack. Leaf is at index 0.
* Note that we call these entries and not frames because an entire call stack
* can be referenced in one entry (via callsite_id).
*
* @generated from field: repeated perfetto.protos.Stack.Entry entries = 1;
*/
entries: Stack_Entry[];
};
/**
* Describes the message perfetto.protos.Stack.
* Use `create(StackSchema)` to create a new message.
*/
export declare const StackSchema: GenMessage<Stack>;
/**
* A stack is an ordered list of these entries. Think of them as frames in the
* stack, although we support entire call stacks as an entry (for efficiency,
* no need to copy entire stacks around if we can just copy a callsite_id).
*
* @generated from message perfetto.protos.Stack.Entry
*/
export type Stack_Entry = Message<"perfetto.protos.Stack.Entry"> & {
/**
* @generated from oneof perfetto.protos.Stack.Entry.entry
*/
entry: {
/**
* @generated from field: string name = 1;
*/
value: string;
case: "name";
} | {
/**
* @generated from field: uint32 callsite_id = 2;
*/
value: number;
case: "callsiteId";
} | {
/**
* @generated from field: uint32 annotated_callsite_id = 3;
*/
value: number;
case: "annotatedCallsiteId";
} | {
/**
* @generated from field: uint32 frame_id = 4;
*/
value: number;
case: "frameId";
} | {
case: undefined;
value?: undefined;
};
};
/**
* Describes the message perfetto.protos.Stack.Entry.
* Use `create(Stack_EntrySchema)` to create a new message.
*/
export declare const Stack_EntrySchema: GenMessage<Stack_Entry>;
//# sourceMappingURL=stack_pb.d.ts.map