From 5aeb2c779206b3acd13b964244f2c5b8e7e051fd Mon Sep 17 00:00:00 2001 From: Ava Hahn Date: Mon, 25 Aug 2025 16:52:27 -0700 Subject: [PATCH] minimal readme and enable cache analysis Signed-off-by: Ava Hahn --- README.md | 18 ++++++++++++++++++ kaproxy/run.sh | 1 + 2 files changed, 19 insertions(+) create mode 100644 README.md 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 \