Skip to main content

a package to graphically monitor per-process resource usage

Project description

resitor

PyPI Downloads

Author: Kevin Zhu

Features

  • graphical per-process monitoring of CPU and memory
  • last-frame saving
  • customization
  • multiple PIDs
  • CLI or Python

Installation

To install resitor, use pip: pip install resitor.

However, many prefer to use a virtual environment.

macOS / Linux:

# make your desired directory
mkdir /path/to/your/directory
cd /path/to/your/directory

# setup the .venv (or whatever you want to name it)
pip install virtualenv
python3 -m venv .venv

# install resitor
source .venv/bin/activate
pip install resitor

deactivate # when you are completely done

Windows CMD:

# make your desired directory
mkdir C:path\to\your\directory
cd C:path\to\your\directory

# setup the .venv (or whatever you want to name it)
pip install virtualenv
python3 -m venv .venv

# install resitor
.venv\Scripts\activate
pip install resitor

deactivate # when you are completely done

Usage

First, start a process (a python script). In the Tests/ folder, there is an existing long_program.py (be careful, it takes resources so you must manually end it when you are done).

It will print the PID of that process, through os.getpid(). Then, use python3 -m resitor <pid> to monitor the resource usage.

Or, you may use the start_monitor(<pid>, ...) function and input your desired parameters.

You may enter a list of PIDs through python3 -m resitor <pid1> <pid2> .... A list of PIDs can be inputed to start_monitor() as well.

If you don't want to watch CPU or memory, simply add the -noc or nom flags.

For Windows / Linux users, you may also watch the disk usage through the -dsk flag.

Currently, psutil (what this is built on) does not have per-process network monitoring. Furthermore, macOS users do not have access to per-process disk monitoring.

License

The License is an MIT License found in the LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resitor-0.0.2.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resitor-0.0.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file resitor-0.0.2.tar.gz.

File metadata

  • Download URL: resitor-0.0.2.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for resitor-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2dcec8697b89eab594f6cc4164031edff0bf8bff1a17a26c18308b6a5241f8d1
MD5 eddc67dea3185125b338f21c2af474ad
BLAKE2b-256 c945aca4d85f3b593f52547a71472d0fc5ed16bf46e14e1e09265b1f74f59f8e

See more details on using hashes here.

File details

Details for the file resitor-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: resitor-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for resitor-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d0629e11f515bd42cd03ac91ea8fdd039cfe1bf8218c624be0e9d29187596220
MD5 05394a0c069fb1acecd4bcbec07813e0
BLAKE2b-256 ec3a23523b057ad86b298dd4a7b4b9e68898fb5c4958bec4dbca87cf93043119

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page