perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
110 lines • 4.14 kB
TypeScript
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/config/process_stats/process_stats_config.proto.
*/
export declare const file_protos_perfetto_config_process_stats_process_stats_config: GenFile;
/**
* @generated from message perfetto.protos.ProcessStatsConfig
*/
export type ProcessStatsConfig = Message<"perfetto.protos.ProcessStatsConfig"> & {
/**
* @generated from field: repeated perfetto.protos.ProcessStatsConfig.Quirks quirks = 1;
*/
quirks: ProcessStatsConfig_Quirks[];
/**
* If enabled all processes will be scanned and dumped when the trace starts.
*
* @generated from field: optional bool scan_all_processes_on_start = 2;
*/
scanAllProcessesOnStart: boolean;
/**
* If enabled thread names are also recoded (this is redundant if sched_switch
* is enabled).
*
* @generated from field: optional bool record_thread_names = 3;
*/
recordThreadNames: boolean;
/**
* If > 0 samples counters (see process_stats.proto) from
* /proc/pid/status and oom_score_adj every X ms.
* It will also sample /proc/pid/smaps_rollup if scan_smaps_rollup = true.
* This is required to be > 100ms to avoid excessive CPU usage.
*
* @generated from field: optional uint32 proc_stats_poll_ms = 4;
*/
procStatsPollMs: number;
/**
* This is required to be either = 0 or a multiple of |proc_stats_poll_ms|
* (default: |proc_stats_poll_ms|). If = 0, will be set to
* |proc_stats_poll_ms|. Non-multiples will be rounded down to the nearest
* multiple.
*
* @generated from field: optional uint32 proc_stats_cache_ttl_ms = 6;
*/
procStatsCacheTtlMs: number;
/**
* Niche feature: If true this will resolve file descriptors for each process
* so these can be mapped to their actual device or file.
* Requires raw_syscalls/sys_{enter,exit} ftrace events to be enabled or
* new fds opened after initially scanning a process will not be
* recognized.
*
* @generated from field: optional bool resolve_process_fds = 9;
*/
resolveProcessFds: boolean;
/**
* If true, output will include memory stats from /proc/pid/smaps_rollup.
*
* @generated from field: optional bool scan_smaps_rollup = 10;
*/
scanSmapsRollup: boolean;
/**
* If true: process descriptions will include process age (starttime in
* /proc/pid/stat).
* Introduced in: perfetto v44.
*
* @generated from field: optional bool record_process_age = 11;
*/
recordProcessAge: boolean;
/**
* If true and |proc_stats_poll_ms| is true, process stats will include time
* spent running in user/kernel mode (utime/stime in /proc/pid/stat).
* Introduced in: perfetto v44.
*
* @generated from field: optional bool record_process_runtime = 12;
*/
recordProcessRuntime: boolean;
};
/**
* Describes the message perfetto.protos.ProcessStatsConfig.
* Use `create(ProcessStatsConfigSchema)` to create a new message.
*/
export declare const ProcessStatsConfigSchema: GenMessage<ProcessStatsConfig>;
/**
* @generated from enum perfetto.protos.ProcessStatsConfig.Quirks
*/
export declare enum ProcessStatsConfig_Quirks {
/**
* @generated from enum value: QUIRKS_UNSPECIFIED = 0;
*/
QUIRKS_UNSPECIFIED = 0,
/**
* This has been deprecated and ignored as per 2018-05-01. Full scan at
* startup is now disabled by default and can be re-enabled using the
* |scan_all_processes_on_start| arg.
*
* @generated from enum value: DISABLE_INITIAL_DUMP = 1 [deprecated = true];
* @deprecated
*/
DISABLE_INITIAL_DUMP = 1,
/**
* @generated from enum value: DISABLE_ON_DEMAND = 2;
*/
DISABLE_ON_DEMAND = 2
}
/**
* Describes the enum perfetto.protos.ProcessStatsConfig.Quirks.
*/
export declare const ProcessStatsConfig_QuirksSchema: GenEnum<ProcessStatsConfig_Quirks>;
//# sourceMappingURL=process_stats_config_pb.d.ts.map