Skip to content

Commit

Permalink
remove memsize (#1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush authored Oct 17, 2024
1 parent 75785fa commit 165ee66
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/debug/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,13 @@ import (

"github.com/ava-labs/subnet-evm/internal/flags"
"github.com/ethereum/go-ethereum/log"
"github.com/fjl/memsize/memsizeui"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
"github.com/urfave/cli/v2"
"golang.org/x/exp/slog"
"gopkg.in/natefinch/lumberjack.v2"
)

var Memsize memsizeui.Handler

var (
verbosityFlag = &cli.IntFlag{
Name: "verbosity",
Expand Down Expand Up @@ -314,7 +311,6 @@ func Setup(ctx *cli.Context) error {
}

func StartPProf(address string) {
http.Handle("/memsize/", http.StripPrefix("/memsize", &Memsize))
log.Info("Starting pprof server", "addr", fmt.Sprintf("http://%s/debug/pprof", address))
go func() {
if err := http.ListenAndServe(address, nil); err != nil {
Expand Down

0 comments on commit 165ee66

Please sign in to comment.