perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
98 lines • 3.65 kB
TypeScript
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import type { WindowManagerServiceDumpProto } from "./server/windowmanagerservice_pb";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/trace/android/windowmanager.proto.
*/
export declare const file_protos_perfetto_trace_android_windowmanager: GenFile;
/**
* Represents a file full of window manager trace entries.
* Encoded, it should start with 0x9 0x57 0x49 0x4e 0x54 0x52 0x41 0x43 0x45
* (.WINTRACE), such that they can be easily identified.
*
* @generated from message perfetto.protos.WindowManagerTraceFileProto
*/
export type WindowManagerTraceFileProto = Message<"perfetto.protos.WindowManagerTraceFileProto"> & {
/**
* Must be the first field, set to value in MagicNumber
*
* @generated from field: optional fixed64 magic_number = 1;
*/
magicNumber: bigint;
/**
* @generated from field: repeated perfetto.protos.WindowManagerTraceEntry entry = 2;
*/
entry: WindowManagerTraceEntry[];
/**
* offset between real-time clock and elapsed time clock in nanoseconds.
* Calculated as: 1000000 * System.currentTimeMillis() -
* SystemClock.elapsedRealtimeNanos()
*
* @generated from field: optional fixed64 real_to_elapsed_time_offset_nanos = 3;
*/
realToElapsedTimeOffsetNanos: bigint;
};
/**
* Describes the message perfetto.protos.WindowManagerTraceFileProto.
* Use `create(WindowManagerTraceFileProtoSchema)` to create a new message.
*/
export declare const WindowManagerTraceFileProtoSchema: GenMessage<WindowManagerTraceFileProto>;
/**
* constant; MAGIC_NUMBER = (long) MAGIC_NUMBER_H << 32 |
* MagicNumber.MAGIC_NUMBER_L (this is needed because enums have to be 32 bits
* and there's no nice way to put 64bit constants into .proto files.
*
* @generated from enum perfetto.protos.WindowManagerTraceFileProto.MagicNumber
*/
export declare enum WindowManagerTraceFileProto_MagicNumber {
/**
* @generated from enum value: INVALID = 0;
*/
INVALID = 0,
/**
* WINT (little-endian ASCII)
*
* @generated from enum value: MAGIC_NUMBER_L = 1414416727;
*/
MAGIC_NUMBER_L = 1414416727,
/**
* RACE (little-endian ASCII)
*
* @generated from enum value: MAGIC_NUMBER_H = 1162035538;
*/
MAGIC_NUMBER_H = 1162035538
}
/**
* Describes the enum perfetto.protos.WindowManagerTraceFileProto.MagicNumber.
*/
export declare const WindowManagerTraceFileProto_MagicNumberSchema: GenEnum<WindowManagerTraceFileProto_MagicNumber>;
/**
* one window manager trace entry
*
* @generated from message perfetto.protos.WindowManagerTraceEntry
*/
export type WindowManagerTraceEntry = Message<"perfetto.protos.WindowManagerTraceEntry"> & {
/**
* required: elapsed realtime in nanos since boot of when this entry was
* logged
*
* @generated from field: optional fixed64 elapsed_realtime_nanos = 1;
*/
elapsedRealtimeNanos: bigint;
/**
* where the trace originated
*
* @generated from field: optional string where = 2;
*/
where: string;
/**
* @generated from field: optional perfetto.protos.WindowManagerServiceDumpProto window_manager_service = 3;
*/
windowManagerService?: WindowManagerServiceDumpProto;
};
/**
* Describes the message perfetto.protos.WindowManagerTraceEntry.
* Use `create(WindowManagerTraceEntrySchema)` to create a new message.
*/
export declare const WindowManagerTraceEntrySchema: GenMessage<WindowManagerTraceEntry>;
//# sourceMappingURL=windowmanager_pb.d.ts.map