UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

85 lines 3.08 kB
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file protos/perfetto/trace/ui_state.proto. */ export declare const file_protos_perfetto_trace_ui_state: GenFile; /** * Common state for UIs visualizing Perfetto traces. * This message can be appended as a TracePacket by UIs to save the * visible state (e.g. scroll position/zoom state) for future opening * of the trace. * Design doc: go/trace-ui-state. * * @generated from message perfetto.protos.UiState */ export type UiState = Message<"perfetto.protos.UiState"> & { /** * The start and end bounds of the viewport of the UI in nanoseconds. * * This is the absolute time associated to slices and other events in * trace processor tables (i.e. the |ts| column of most tables) * * @generated from field: optional int64 timeline_start_ts = 1; */ timelineStartTs: bigint; /** * @generated from field: optional int64 timeline_end_ts = 2; */ timelineEndTs: bigint; /** * @generated from field: optional perfetto.protos.UiState.HighlightProcess highlight_process = 3; */ highlightProcess?: UiState_HighlightProcess; }; /** * Describes the message perfetto.protos.UiState. * Use `create(UiStateSchema)` to create a new message. */ export declare const UiStateSchema: GenMessage<UiState>; /** * Indicates that the given process should be highlighted by the UI. * * @generated from message perfetto.protos.UiState.HighlightProcess */ export type UiState_HighlightProcess = Message<"perfetto.protos.UiState.HighlightProcess"> & { /** * @generated from oneof perfetto.protos.UiState.HighlightProcess.selector */ selector: { /** * The pid of the process to highlight. This is useful for UIs to focus * on tracks of a particular process in the trace. * * If more than one process in a trace has the same pid, it is UI * implementation specific how the process to be focused will be * chosen. * * @generated from field: uint32 pid = 1; */ value: number; case: "pid"; } | { /** * The command line of the process to highlight; for most Android apps, * this is the package name of the app. This is useful for UIs to focus * on a particular app in the trace. * * If more than one process hasthe same cmdline, it is UI implementation * specific how the process to be focused will be chosen. * * @generated from field: string cmdline = 2; */ value: string; case: "cmdline"; } | { case: undefined; value?: undefined; }; }; /** * Describes the message perfetto.protos.UiState.HighlightProcess. * Use `create(UiState_HighlightProcessSchema)` to create a new message. */ export declare const UiState_HighlightProcessSchema: GenMessage<UiState_HighlightProcess>; //# sourceMappingURL=ui_state_pb.d.ts.map