Metadata-Version: 2.3
Name: psrm
Version: 0.1.2
Summary: A process system resource usage monitor.
Author: Ray
Author-email: Ray <smallzhu66@163.com>
Requires-Dist: matplotlib>=3.10.8
Requires-Dist: pandas>=2.3.3
Requires-Dist: polars>=1.36.1
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 12345

# As a installed package.
python -m psrm 12345 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
from psrm.utils import visualize_data

visualize_data("20251225_202020_953721bb.csv")
```

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