From c00a5bfc9cf7b3fa72fa573decef88a8e45dc100 Mon Sep 17 00:00:00 2001 From: TheFox0x7 Date: Mon, 1 Apr 2024 18:29:54 +0200 Subject: [PATCH] download profilecli --- upgrade/test-pprof-upload.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/upgrade/test-pprof-upload.sh b/upgrade/test-pprof-upload.sh index 9a82598..62a2f4d 100644 --- a/upgrade/test-pprof-upload.sh +++ b/upgrade/test-pprof-upload.sh @@ -1,10 +1,12 @@ # SPDX-License-Identifier: MIT function test_upload_profiles() { - FORGEJO_URL="http://${IP}:6060" + FORGEJO_URL="http://localhost:6060" PROFILECLI_URL="http://0.0.0.0:4040" endpoints=("/debug/pprof/allocs" "/debug/pprof/block" "/debug/pprof/goroutine" "/debug/pprof/mutex" "/debug/pprof/profile?seconds=5") + curl -fL https://github.com/grafana/pyroscope/releases/download/v1.1.5/profilecli_1.1.5_linux_amd64.tar.gz -o profilecli.tar.gz + tar xzf profilecli.tar.gz for endpoint in "${endpoints[@]}"; do output=$(basename "$endpoint") @@ -27,6 +29,7 @@ function test_forgejo_pprof() { log_info "run 8.0-dev" start 8.0-dev + test_upload_profiles stop