mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
fix(climc): keystone pprof profile (#22406)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user