diff --git a/README.md b/README.md new file mode 100644 index 0000000..d7ef57f --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# Profiling Setup +This is a script that uses a docker-compose environment with custom NGINX +configuration to profile NGINX for CPU and Memory costly calls. + +### Dependencies +The following must be installed and configured on your system. +- Valgrind +- Callgrind +- Docker +- Docker Compose +- Rsync +- Go + +### Use +Call run.sh like so: +``` +$ run.sh ./path/to/nginx/source/directory +``` diff --git a/kaproxy/run.sh b/kaproxy/run.sh index 6f236d7..817a32f 100755 --- a/kaproxy/run.sh +++ b/kaproxy/run.sh @@ -5,6 +5,7 @@ function p_invoke() { valgrind --tool=callgrind \ --trace-children=no \ --callgrind-out-file=/tmp/callgrind.output \ + --cache-sim=yes \ /nginx/objs/nginx \ -p /tmp \ -e /tmp/error.log \