You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple recorder for cpu and memory usage of processes.
Currently, linux as well as macos are supported. Results are outputted in machine parsable format to stdout or can be directly plotted using gnuplot (must be in $PATH).
Installation
Unfortunately, clap 3.0 is not yet published to crates.io. Thus, the following does not work (yet):
cargo install procrec
Therefore, manual installation from github is required:
If you want plotting functionality you also need to install gnuplot via your package manager (e.g., sudo apt install gnuplot or brew install gnuplot).
Usage
Help
$ procrec -h
procrec 0.2.2
Lars Baumgaertner
Process recorder to log cpu utilization and memory consumption
USAGE:
procrec [FLAGS] [OPTIONS] --pid <pid>
FLAGS:
-g, --graph Display graph using gnuplot
-h, --help Prints help information
-t, --print-gnuplot Just print gnuplot script
-v, --verbose A level of verbosity, and can be used multiple times
-V, --version Prints version information
OPTIONS:
-d, --duration <duration> Duration for observation
-i, --interval <interval> Sampling interval in seconds [default: 2]
-p, --pid <pid> Process to be inspected