A simple Linux example, that runs an ELF binary and measures its CPU usage using ps.
As an example ELF binary, a simple C program is used that repeatedly checks if random numbers are prime or not.
Install the requirements to run:
sudo apt install cpulimit gcc
pip install -r requirements.txt
From the root directory of the repo, run the following command:
python experiment-runner/ examples/linux-ps-profiling/RunnerConfig.py
The results are generated in the examples/linux-ps-profiling/experiments
folder.