From ef78558124f7d489bf03f84aefc38ab74d0bd25e Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 18 Dec 2023 18:08:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=80=A7=E8=83=BD=E6=A3=80?= =?UTF-8?q?=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lego/sys/pprof/sys_test.go | 2 ++ services/cmd/main.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lego/sys/pprof/sys_test.go b/lego/sys/pprof/sys_test.go index c280b1a3c..ace5ed771 100644 --- a/lego/sys/pprof/sys_test.go +++ b/lego/sys/pprof/sys_test.go @@ -4,6 +4,7 @@ package pprof_test 查看堆栈调用信息 go tool pprof http://122.51.39.132:9090/debug/pprof/heap 查看 30 秒内的 CPU 信息 +go tool pprof http://122.51.39.132:9090/debug/pprof/profile -seconds 10 go tool pprof http://122.51.39.132:9090/debug/pprof/profile?seconds=30 查看 goroutine 阻塞 go tool pprof http://122.51.39.132:9090/debug/pprof/block @@ -11,6 +12,7 @@ go tool pprof http://122.51.39.132:9090/debug/pprof/block go tool pprof http://122.51.39.132:9090/debug/pprof/trace?seconds=5 争用互斥持有者的堆栈跟踪 go tool pprof http://122.51.39.132:9090/debug/pprof/mutex +go tool pprof -http=:7778 http://122.51.39.132:9090/debug/pprof/heap */ /* UI web 界面 diff --git a/services/cmd/main.go b/services/cmd/main.go index bfaf31692..4e7aa4243 100644 --- a/services/cmd/main.go +++ b/services/cmd/main.go @@ -211,7 +211,7 @@ func start() { } } } - log.Errorf("start succ!") + log.Debugf("start succ!") } // 关闭程序