fix(climc): keystone pprof profile (#22406)

This commit is contained in:
屈轩
2025-04-14 15:28:19 +08:00
committed by GitHub
parent 21ea7ff3db
commit 9bf61accb8
+5
View File
@@ -19,6 +19,7 @@ import (
"io"
"io/ioutil"
"os"
"strings"
"syscall"
"yunion.io/x/jsonutils"
@@ -68,6 +69,10 @@ func init() {
return fmt.Errorf("no service address provide")
}
if opts.Service == "identity" {
svcUrl = strings.TrimSuffix(svcUrl, "/v3")
}
params := jsonutils.NewDict()
params.Add(jsonutils.NewInt(int64(opts.Second)), "seconds")
if pType == "heap" && opts.Gc {