container image for using cgroups to profile performance of a command
python /path/to/cgperf/cgperf.py build
python /path/to/cgperf/cgperf.py run --setup 'pip install -q ./ansible' /bin/sh -c 'cd playbooks; ansible-playbook test.yml'cd /path/to/cgperf
docker build -t sivel/cgperf .
cd -
docker run --rm -v "$PWD:$PWD" -w "$PWD" --privileged sivel/cgperf --setup 'pip install -q ./ansible' /bin/sh -c 'cd playbooks; ansible-playbook test.yml'