From 06366d743d53fe243607a0e6465ed0cf743bdb75 Mon Sep 17 00:00:00 2001 From: joeycli Date: Thu, 29 Aug 2024 11:59:30 +0800 Subject: [PATCH] chore: add pprof service --- cmd/geth/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/geth/main.go b/cmd/geth/main.go index a79ef422f..4ef649da0 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -361,6 +361,8 @@ func geth(ctx *cli.Context) error { defer stack.Close() startNode(ctx, stack, backend, false) + // TODO:: debug code , will be deleted in the future + debug.StartPProf("127.0.0.1:7060", !ctx.IsSet("metrics.addr")) stack.Wait() return nil }