Test project for C++23 with meson
overlays/libnotify | ||
src | ||
systemd | ||
.clang-format | ||
.clang-tidy | ||
.clangd | ||
.gitignore | ||
CMakeLists.txt | ||
CMakePresets.json | ||
compile_commands.json | ||
config.h.in | ||
LICENSE | ||
procwatch.1 | ||
README.md | ||
vcpkg-configuration.json | ||
vcpkg.json |
procwatch
Monitor CPU usage of processes matching a regular expression pattern
Usage: procwatch [OPTIONS] <pattern>...
Positionals:
<pattern> TEXT ... REQUIRED Regular expression pattern to match (partial) process name(s)
Options:
-h,--help Print this help message and exit
-i,--interval UINT:UINT [UNIT] [30s]
Interval between process cpu usage measurements
-g,--grace-period UINT:UINT [UNIT] [5m]
Cooldown period before another notification can be sent
-t,--threshold FLOAT [66] CPU usage threshold
-v,--version Display program version information and exit
Build
cmake --workflow --preset={debug,release,native}
Example
./procwatch --interval=30s --grace-period=5m --threshold=66 '^/app/lib/firefox/firefox-bin$|^/app/brave/brave'
# print snapshot of matching processes while running
kill -HUP $(pidof procwatch)