perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
89 lines • 3.41 kB
TypeScript
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/metrics/android/auto_metric.proto.
*/
export declare const file_protos_perfetto_metrics_android_auto_metric: GenFile;
/**
* Metrics for Multiuser events, such as switching users.
*
* @generated from message perfetto.protos.AndroidAutoMultiuserMetric
*/
export type AndroidAutoMultiuserMetric = Message<"perfetto.protos.AndroidAutoMultiuserMetric"> & {
/**
* Metrics for a user switch.
*
* @generated from field: repeated perfetto.protos.AndroidAutoMultiuserMetric.EventData user_switch = 1;
*/
userSwitch: AndroidAutoMultiuserMetric_EventData[];
};
/**
* Describes the message perfetto.protos.AndroidAutoMultiuserMetric.
* Use `create(AndroidAutoMultiuserMetricSchema)` to create a new message.
*/
export declare const AndroidAutoMultiuserMetricSchema: GenMessage<AndroidAutoMultiuserMetric>;
/**
* @generated from message perfetto.protos.AndroidAutoMultiuserMetric.EventData
*/
export type AndroidAutoMultiuserMetric_EventData = Message<"perfetto.protos.AndroidAutoMultiuserMetric.EventData"> & {
/**
* Id of the user the system has been switched to
*
* @generated from field: optional int32 user_id = 1;
*/
userId: number;
/**
* The end event name for which the duration_ms is measured
*
* @generated from field: optional string start_event = 2;
*/
startEvent: string;
/**
* The end event name for which the duration_ms is measured
*
* @generated from field: optional string end_event = 3;
*/
endEvent: string;
/**
* Duration of the event (in milliseconds).
*
* @generated from field: optional int64 duration_ms = 4;
*/
durationMs: bigint;
/**
* @generated from field: optional perfetto.protos.AndroidAutoMultiuserMetric.EventData.UserData previous_user_info = 5;
*/
previousUserInfo?: AndroidAutoMultiuserMetric_EventData_UserData;
};
/**
* Describes the message perfetto.protos.AndroidAutoMultiuserMetric.EventData.
* Use `create(AndroidAutoMultiuserMetric_EventDataSchema)` to create a new message.
*/
export declare const AndroidAutoMultiuserMetric_EventDataSchema: GenMessage<AndroidAutoMultiuserMetric_EventData>;
/**
* Previous user resource usage info during user switch
*
* @generated from message perfetto.protos.AndroidAutoMultiuserMetric.EventData.UserData
*/
export type AndroidAutoMultiuserMetric_EventData_UserData = Message<"perfetto.protos.AndroidAutoMultiuserMetric.EventData.UserData"> & {
/**
* Id of the user the system has been switched from
*
* @generated from field: optional int32 user_id = 1;
*/
userId: number;
/**
* @generated from field: optional int64 total_cpu_time_ms = 2;
*/
totalCpuTimeMs: bigint;
/**
* @generated from field: optional int64 total_memory_usage_kb = 3;
*/
totalMemoryUsageKb: bigint;
};
/**
* Describes the message perfetto.protos.AndroidAutoMultiuserMetric.EventData.UserData.
* Use `create(AndroidAutoMultiuserMetric_EventData_UserDataSchema)` to create a new message.
*/
export declare const AndroidAutoMultiuserMetric_EventData_UserDataSchema: GenMessage<AndroidAutoMultiuserMetric_EventData_UserData>;
//# sourceMappingURL=auto_metric_pb.d.ts.map