download profilecli
This commit is contained in:
parent
0b216e9851
commit
c00a5bfc9c
1 changed files with 4 additions and 1 deletions
|
@ -1,10 +1,12 @@
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
function test_upload_profiles() {
|
function test_upload_profiles() {
|
||||||
FORGEJO_URL="http://${IP}:6060"
|
FORGEJO_URL="http://localhost:6060"
|
||||||
PROFILECLI_URL="http://0.0.0.0:4040"
|
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")
|
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
|
for endpoint in "${endpoints[@]}"; do
|
||||||
output=$(basename "$endpoint")
|
output=$(basename "$endpoint")
|
||||||
|
@ -27,6 +29,7 @@ function test_forgejo_pprof() {
|
||||||
log_info "run 8.0-dev"
|
log_info "run 8.0-dev"
|
||||||
|
|
||||||
start 8.0-dev
|
start 8.0-dev
|
||||||
|
|
||||||
test_upload_profiles
|
test_upload_profiles
|
||||||
stop
|
stop
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue