perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
90 lines • 3.46 kB
TypeScript
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/metrics/android/multiuser_metric.proto.
*/
export declare const file_protos_perfetto_metrics_android_multiuser_metric: GenFile;
/**
* Metrics for Multiuser events, such as switching users.
*
* @generated from message perfetto.protos.AndroidMultiuserMetric
*/
export type AndroidMultiuserMetric = Message<"perfetto.protos.AndroidMultiuserMetric"> & {
/**
* Metrics for a user switch.
*
* @generated from field: optional perfetto.protos.AndroidMultiuserMetric.EventData user_switch = 1;
*/
userSwitch?: AndroidMultiuserMetric_EventData;
};
/**
* Describes the message perfetto.protos.AndroidMultiuserMetric.
* Use `create(AndroidMultiuserMetricSchema)` to create a new message.
*/
export declare const AndroidMultiuserMetricSchema: GenMessage<AndroidMultiuserMetric>;
/**
* Holds the data for a Multiuser event.
*
* @generated from message perfetto.protos.AndroidMultiuserMetric.EventData
*/
export type AndroidMultiuserMetric_EventData = Message<"perfetto.protos.AndroidMultiuserMetric.EventData"> & {
/**
* Duration of the event (in milliseconds).
*
* @generated from field: optional int32 duration_ms = 1;
*/
durationMs: number;
/**
* @generated from field: repeated perfetto.protos.AndroidMultiuserMetric.EventData.CpuUsage cpu_usage = 2;
*/
cpuUsage: AndroidMultiuserMetric_EventData_CpuUsage[];
};
/**
* Describes the message perfetto.protos.AndroidMultiuserMetric.EventData.
* Use `create(AndroidMultiuserMetric_EventDataSchema)` to create a new message.
*/
export declare const AndroidMultiuserMetric_EventDataSchema: GenMessage<AndroidMultiuserMetric_EventData>;
/**
* CPU usage of each process during the event.
*
* @generated from message perfetto.protos.AndroidMultiuserMetric.EventData.CpuUsage
*/
export type AndroidMultiuserMetric_EventData_CpuUsage = Message<"perfetto.protos.AndroidMultiuserMetric.EventData.CpuUsage"> & {
/**
* The userId of the process (e.g. 0 or 10).
*
* @generated from field: optional int32 user_id = 1;
*/
userId: number;
/**
* The name of the process.
*
* @generated from field: optional string process_name = 2;
*/
processName: string;
/**
* The number of CPU cycles (in megacycles) spent by that process during the event.
*
* @generated from field: optional int32 cpu_mcycles = 3;
*/
cpuMcycles: number;
/**
* The ratio of this process's cycles to the total for all processes, expressed as a percentage.
*
* @generated from field: optional float cpu_percentage = 4;
*/
cpuPercentage: number;
/**
* General identifier for this usage source: determined from the process name, user, etc.
* Should be stable across multiple runs (i.e. does not print the user_id directly).
*
* @generated from field: optional string identifier = 5;
*/
identifier: string;
};
/**
* Describes the message perfetto.protos.AndroidMultiuserMetric.EventData.CpuUsage.
* Use `create(AndroidMultiuserMetric_EventData_CpuUsageSchema)` to create a new message.
*/
export declare const AndroidMultiuserMetric_EventData_CpuUsageSchema: GenMessage<AndroidMultiuserMetric_EventData_CpuUsage>;
//# sourceMappingURL=multiuser_metric_pb.d.ts.map