Fancy display of memory usage
Project description
memproc
✨ Fancy display of memory usage.
Aim
This tool lets you show all processes in your system (like ps aux) including memory usage with a fancy display and a bunch of command line options. RSS is the chosen memory metric.
Installation
$ pip install memproc
Usage
Usage: memproc [OPTIONS]
--version Show installed version.
--update Update memproc to last version.
--sort -s TEXT Sort results by criteria (m:mem, p:pid, d:description). [default: m]
--sort-reverse -r Sort reverse by current criteria.
--description -d TEXT Process description (n:name, e:executable, c:command line). [default: n]
--show-total -t Show total used memory.
--units -u TEXT Memory units (k:KB, m:MB, g:GB). [default: m]
--num-processes -n INTEGER Limit the number of processes shown. [default: 0]
--grouped Group process by description.
--greater-than -g FLOAT Show processes with used memory greater than this value. [default: 0]
--lower-than -l FLOAT Show processes with used memory lower than this value. [default: 17179869184]
--find-description -f TEXT Find processes with text by the chosen description criteria.
--no-color Disable output coloring.
--help Show this message and exit.
Get version
$ memproc --version
Update tool
$ memproc --update
Use cases
Show all processes with the total amount of used memory:
$ memproc -t
Sort results by pid with processes greater than 10MB and less than 100MB:
$ memproc -sp -g10 -l100 -um
Show grouped Firefox processes sorted by command line:
$ memproc --grouped -f firefox -sd -dc
Show the top 20 most memory consuming processes with KB units:
$ memproc -n20 -uk
Show processes (sorted reverse memory used) with executable as description and GB units:
$ memproc -de -ug -r
Color
By default, processes are classified in 4 groups with regards to the maximum amount of memory usage. Each group is shown with colors: green, yellow, orange and red.
Output coloring can be disabled as follows:
$ memproc --no-color
Pager
You can use memproc with your favourite pager:
$ memproc | less
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file memproc-0.1.2.tar.gz.
File metadata
- Download URL: memproc-0.1.2.tar.gz
- Upload date:
- Size: 129.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
746c548f93d14de3078f21ceea70a0fe59e7250b256de8fb531f7389f09495c9
|
|
| MD5 |
4c5b11682f7b015729f629917442900d
|
|
| BLAKE2b-256 |
bcec4c19bfbe75c8d00de36f3e71924583da71ce4283300bf97a0d39f7d48e8d
|
File details
Details for the file memproc-0.1.2-py3-none-any.whl.
File metadata
- Download URL: memproc-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8d018d321f1879bbee8d155299f06900fdb7e074dd8cafb90aea17ed6df0d6a
|
|
| MD5 |
08f726528f049d740c3428eed77d0c9d
|
|
| BLAKE2b-256 |
b242f43a484c7b507120287c69472171e7b4f9e78e0b04c7830429ba19ec4fc1
|