simplify user installation commands in readme
accept interval as int in milliseconds
add example output to the readme
Resource monitor for profiling processes and their subprocesses
To monitor the resource usage of a command,
provide the command and its arguments as positional arguments to monitor
.
For example:
monitor -i 100 bin/script output.txt
The output should look similar to this:
Time | CPU | Threads | RSS | VMS | PID | Command | CmdLine |
---|---|---|---|---|---|---|---|
0.10 | 21.17 | 1 | 10747904 | 21164032 | 203762 | python3 | ["python3" "test.py"] |
0.10 | 3.30 | 1 | 2359296 | 9441280 | 203763 | sed | ["sed" "s/0$/5/"] |
0.10 | 0.00 | 1 | 1835008 | 2867200 | 203761 | script | ["/bin/sh" "bin/script" "output.txt"] |
0.20 | 31.25 | 1 | 10747904 | 21164032 | 203762 | python3 | ["python3" "test.py"] |
0.20 | 6.37 | 1 | 2359296 | 9441280 | 203763 | sed | ["sed" "s/0$/5/"] |
0.20 | 0.00 | 1 | 1835008 | 2867200 | 203761 | script | ["/bin/sh" "bin/script" "output.txt"] |
To see the full list of options, run:
monitor -h
The program must be built from source, using a Go compiler.
go install git.sr.ht/~javiljoen/monitor/v3@latest
To run the linters and test the program, run:
make check test clean
This program has the following dependencies when built on Unix:
BSD 3-Clause