Metadata-Version: 2.3
Name: psrm
Version: 0.1.3
Summary: A process system resource usage monitor.
Author: Ray
Author-email: Ray <smallzhu66@163.com>
Requires-Dist: matplotlib>=3.10.8
Requires-Dist: psutil>=7.1.3
Requires-Dist: pydantic-settings>=2.12.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# psrm

A process system resource usage monitor.

## Installation

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

```shell
# 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.

```shell
# 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:

```shell
psrm plot 20251225_202020_953721bb.csv
```

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