procstat is a small terminal utlity for presenting the CPU utilization on GNU/Linux
-
C compiler (clang or gcc) with C23 support
-
CMake
-
GNU Make / Ninja
-
Clone this repository
-
Create a build directory and cd into it
mkdir build
cd build
- Run CMake:
- for clang:
cmake .. -DCMAKE_C_COMPILER=clang
- for gcc:
cmake .. -DCMAKE_C_COMPILER=gcc
- Run make:
make -j`nproc`
- To run the app:
./src/pstat
- to stop the app use the following key combination: CTRL+C
- To run tests:
./src/tests/test