Scroll to navigation

PSRECORD(1) User Commands PSRECORD(1)

NAME

psrecord - A small utility that records the CPU and memory activity of a process. Can also output results to a plot.

DESCRIPTION

usage: psrecord [-h] [--log LOG] [--log-format LOG_FORMAT] [--plot PLOT]

[--duration DURATION] [--interval INTERVAL] [--include-children] [--include-io] process_id_or_command

Record CPU and memory usage for a process

positional arguments:

the process id or command.

options:

show this help message and exit
output the statistics to a file. If neither --log nor --plot are specified, print to print to standard output.
the format of the log file, can be one of "plain" or "csv"
output the statistics to a plot.
how long to record for (in seconds). If not specified, the recording is continuous until the job exits.
how long to wait between each sample (in seconds). By default the process is sampled as often as possible.
include sub-processes in statistics (results in a slower maximum sampling rate).
include include_io I/O stats
January 2025 psrecord psrecord