PSRECORD(1)
π PSRECORD(1) π
okay bestie, buckle up, because psrecord is literally the softest little spy you'll ever meet π
she lives in the User Commands section of the manual, and she's here to watch a process's CPU and memory and tell you everything she saw. The whole thing is in the name: psrecord β a small utility that records the CPU and memory activity of a process, and she can also output results to a plot. β¨
π NAME π
psrecord β a small utility that records the CPU and memory activity of a process. Can also output results to a plot. no cap, that's the whole personality πΈ
π¦ DESCRIPTION π¦
okay so here's the vibe. The usage is literally this, exactly this, copy it into your terminal and she'll tell you what she wants:
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 π that's the mission statement, she said it herself.
π positional arguments:
process_id_or_commandβ the process id or command. give her a PID or give her a command, either one, she's flexible like that π
β¨ options:
-h,--helpβ show this help message and exit. classic. iconic. every tool has one and she's no exception π«Ά--log LOGβ output the statistics to a file. and listen: if neither--lognor--plotare specified, it prints to print to standard output. yeah, she said "print to print to" twice, she's got that quirky main character energy, we love her anyway π--log-format LOG_FORMATβ the format of the log file, can be one of"plain"or"csv". only those two, bestie, don't get creative π--plot PLOTβ output the statistics to a plot. pretty little line graph moment πβ¨--duration DURATIONβ how long to record for (in seconds). If not specified, the recording is continuous until the job exits. so like, if you don't give her a timer she will literally follow that process to the ends of the earth π--interval INTERVALβ how long to wait between each sample (in seconds). By default the process is sampled as often as possible. β οΈ note that very short intervals might interfere with accuracy because ofpsrecordoverhead itself β she's thorough but she's not free, and watching too hard changes what you're watching, iykyk--include-childrenβ include sub-processes in statistics (results in a slower maximum sampling rate). family plan activated π but yeah, more little guys to watch = slower top speed, that's the trade--include-ioβ includeinclude_ioI/O stats. yes she wrote it like that, she's a whole mood π
real talk though: the flags--log,--log-format,--plot,--duration,--interval,--include-childrenand--include-ioare all optional. The only thing you actually have to give her is aprocess_id_or_command. periodt. π
and that's the whole page bestie, every flag, every default, every warning, nothing skipped, nothing invented, we ate and left no crumbs π§π
this has been the page for psrecord 1.4-3, dated November 2025 β yeah she's fresh, she's current, she's slaying in the User Commands section. bye bestie, go record something π₯ππ
π¦ where this page comes from
- ubuntu resolute: python3-psrecord 1.4-3 Β· BSD-2-Clause
- ubuntu stonking: python3-psrecord 1.4-3 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms