aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-21 15:50:26 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-21 15:50:26 +0800
commit3f43ee37d34a2074e8aaa7032289e1d0115d0ab7 (patch)
tree247f53fb682121d276ce1b6c4d81f75ef498cb6e /main.go
parentBump dependencies (diff)
downloadforge-3f43ee37d34a2074e8aaa7032289e1d0115d0ab7.tar.gz
forge-3f43ee37d34a2074e8aaa7032289e1d0115d0ab7.tar.zst
forge-3f43ee37d34a2074e8aaa7032289e1d0115d0ab7.zip
Revert "main: Add pprof listener for performance debugging"
This reverts commit 5ec84ffa3f06295ef3d93f7db18f7e0e9ed184eb.
Diffstat (limited to 'main.go')
-rw-r--r--main.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/main.go b/main.go
index 777bd1f..cdf538c 100644
--- a/main.go
+++ b/main.go
@@ -11,7 +11,6 @@ import (
"syscall"
"go.lindenii.runxiyu.org/lindenii-common/clog"
- _ "net/http/pprof"
)
func main() {
@@ -94,17 +93,5 @@ func main() {
}
}()
- // Pprof listener
- pprofListener, err := net.Listen("tcp", "localhost:6060")
- if err != nil {
- clog.Fatal(1, "Listening pprof: "+err.Error())
- }
- clog.Info("Listening pprof on tcp localhost:6060")
- go func() {
- if err = http.Serve(pprofListener, nil); err != nil {
- clog.Fatal(1, "Serving pprof: "+err.Error())
- }
- }()
-
select {}
}