From 3f43ee37d34a2074e8aaa7032289e1d0115d0ab7 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 21 Mar 2025 15:50:26 +0800 Subject: Revert "main: Add pprof listener for performance debugging" This reverts commit 5ec84ffa3f06295ef3d93f7db18f7e0e9ed184eb. --- main.go | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'main.go') 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 {} } -- cgit v1.2.3