Skip to content

prinpal/Pmonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psrm

A process system resource usage monitor.

Installation

Install psrm with uv (recommended), pip, or pipx:

# With uv.
uv tool install psrm@latest  # Install psrm globally.

# With pip.
pip install psrm

# With pipx.
pipx install psrm

Usage

Launch psrm to monitor the specified process; the default monitoring interval is 1 seconds.

# As a command line tool.
psrm monitor 12345

# As a installed package.
python -m psrm monitor 12345 --interval 1.5

psrm will continuously record the process's system resource usage and save the data to a csv file at fixed intervals.

Visualize the recorded data:

psrm plot 20251225_202020_953721bb.csv

The charts intuitively display how process resource usage changes over time.