From 203adfeedc2c606cf6658e1aa30f71e04f643559 Mon Sep 17 00:00:00 2001 From: Darioush Jalali Date: Tue, 15 Oct 2024 18:21:35 -0700 Subject: [PATCH] remove memsize --- internal/debug/flags.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/debug/flags.go b/internal/debug/flags.go index 34289ab921..dfb23fa863 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -38,7 +38,6 @@ 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" @@ -46,8 +45,6 @@ import ( "gopkg.in/natefinch/lumberjack.v2" ) -var Memsize memsizeui.Handler - var ( verbosityFlag = &cli.IntFlag{ Name: "verbosity", @@ -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 {