Test project for C++23 with meson
Find a file
2024-08-04 02:41:43 +02:00
overlays/libnotify Replace meson with vcpkg and cmake 2024-08-04 02:41:43 +02:00
src Enable -Weffc++ and more warnings for debug builds 2024-07-29 23:46:44 +02:00
systemd Update Tor browser example 2024-07-19 13:41:16 +02:00
.clang-format Support SIGHUP for printing matching processes 2023-12-13 14:05:12 +01:00
.clang-tidy Enable -Weffc++ and more warnings for debug builds 2024-07-29 23:46:44 +02:00
.clangd Reduce vector allocations 2023-11-15 12:19:41 +01:00
.gitignore Replace meson with vcpkg and cmake 2024-08-04 02:41:43 +02:00
CMakeLists.txt Replace meson with vcpkg and cmake 2024-08-04 02:41:43 +02:00
CMakePresets.json Replace meson with vcpkg and cmake 2024-08-04 02:41:43 +02:00
compile_commands.json Replace meson with vcpkg and cmake 2024-08-04 02:41:43 +02:00
config.h.in Replace meson with vcpkg and cmake 2024-08-04 02:41:43 +02:00
LICENSE Use Google's re2 library 2023-12-08 11:10:47 +01:00
procwatch.1 Add basic manpage 2024-06-26 17:43:35 +02:00
README.md Replace meson with vcpkg and cmake 2024-08-04 02:41:43 +02:00
vcpkg-configuration.json Replace meson with vcpkg and cmake 2024-08-04 02:41:43 +02:00
vcpkg.json Replace meson with vcpkg and cmake 2024-08-04 02:41:43 +02:00

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)

Please don't upload to GitHub