This is the repo of syssnap
, a header-only C++ library for getting snapshots of processes in Linux.
syssnap
is a header-only C++ library for getting snapshots of the processes on Linux.
It is based on the procfs
filesystem, to be parsed with prox
.
This snapshots can be used to get information about the processes, but also to migrate then to other nodes in a NUMA system.
Everytime you make some "virtual" changes to the processes mapping, don't forget to "commit" them so the system applies them.
syssnap
is a header-only library, so installing should be fairly easy (make sure you have the dependencies installed).
You can simply copy the header files to your project directory and include them in your source code.
Or, you can install it system-wide by running the following commands:
mkdir build
cd build
cmake ..
sudo cmake --build . --target install
syssnap
depends on the following libraries:
Additionally, syssnap
example depends on the following libraries:
For testing, syssnap
depends on the following libraries:
Wiki is WIP. For now, you can check the example directory for examples.
Anyone is welcome to contribute to this project, just behave yourself 😃.
Please use the clang-format
and clang-tidy
tools before committing.
This project is licensed under the GNU GPLv3 license. See LICENSE for more details.
If you have any questions, feel free to send me an email.