From c8ba197ee7e4d1086e91d789446847d0422ae9e3 Mon Sep 17 00:00:00 2001 From: drk Date: Fri, 10 May 2024 14:23:57 -0500 Subject: [PATCH] Added mutex and trace to pprof script --- pprof_tool/pprof_loop.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pprof_tool/pprof_loop.sh b/pprof_tool/pprof_loop.sh index 4609387e67..697e8ba4a3 100755 --- a/pprof_tool/pprof_loop.sh +++ b/pprof_tool/pprof_loop.sh @@ -35,6 +35,8 @@ while true; do echo "Running pprof for port $port" curl http://localhost:$port/debug/pprof/goroutine -o "traces/$folder/$name"_"$timestamp"_"$port"_goroutine.pb.gz curl http://localhost:$port/debug/pprof/heap -o "traces/$folder/$name"_"$timestamp"_"$port"_heap.pb.gz + curl http://localhost:$port/debug/pprof/mutex -o "traces/$folder/$name"_"$timestamp"_"$port"_mutex.pb.gz + curl http://localhost:$port/debug/pprof/trace?seconds=5 -o "traces/$folder/$name"_"$timestamp"_"$port"_trace.pb.gz done sleep 600 done