Skip to content
/ memwatch Public

A simple Linux console utility that runs a given command and monitors its memory usage (RSS and VSZ) including all child processes.

Notifications You must be signed in to change notification settings

cesbo/memwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memwatch

A simple Linux console utility that runs a given command and monitors its memory usage (RSS and VSZ) including all child processes.

Build

cargo build --release

Usage

memwatch [OPTIONS] -- <command> [args...]

Options

Option Description Default
-i, --interval Update interval in milliseconds 1000

Output

Line shows elapsed time, RSS, and VSZ:

[00:12] RSS: 183.52 MB | VSZ: 224.00 MB

Examples

./target/release/memwatch -- python3 - <<'PY'
import time
a = []
for i in range(20):
    a.append(bytearray(10_000_000))  # +10 MB
    time.sleep(1)
PY

License

MIT

About

A simple Linux console utility that runs a given command and monitors its memory usage (RSS and VSZ) including all child processes.

Resources

Stars

Watchers

Forks

Languages