Skip to content

Commit

Permalink
chore: add pprof service
Browse files Browse the repository at this point in the history
  • Loading branch information
joeylichang committed Aug 29, 2024
1 parent 3e8e74d commit 06366d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/geth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 06366d7

Please sign in to comment.