diff --git a/api/debug/api.go b/api/debug/api.go index ff84a6924..4300dbd0f 100644 --- a/api/debug/api.go +++ b/api/debug/api.go @@ -145,7 +145,6 @@ func (h *HandlerT) StartPProf(ptrAddr *string, ptrPort *int) error { // Hook go-metrics into expvar on any /debug/metrics request, load all vars // from the registry into expvar, and execute regular expvar handler. exp.Exp(metrics.DefaultRegistry) - http.Handle("/memsize/", http.StripPrefix("/memsize", &Memsize)) h.handlerInited = true } diff --git a/api/debug/flags.go b/api/debug/flags.go index da881b8fc..66a6c9635 100644 --- a/api/debug/flags.go +++ b/api/debug/flags.go @@ -30,7 +30,6 @@ import ( "path/filepath" "runtime" - "github.com/fjl/memsize/memsizeui" "github.com/kaiachain/kaia/log" "github.com/mattn/go-colorable" "github.com/mattn/go-isatty" @@ -39,8 +38,6 @@ import ( "gopkg.in/natefinch/lumberjack.v2" ) -var Memsize memsizeui.Handler - var ( verbosityFlag = &cli.IntFlag{ Name: "verbosity", diff --git a/cmd/utils/nodecmd/defaultcmd.go b/cmd/utils/nodecmd/defaultcmd.go index d5d64a51d..dd5f666e1 100644 --- a/cmd/utils/nodecmd/defaultcmd.go +++ b/cmd/utils/nodecmd/defaultcmd.go @@ -80,8 +80,6 @@ func MakeFullNode(ctx *cli.Context) *node.Node { // it unlocks any requested accounts, and starts the RPC/IPC interfaces and the // miner. func startNode(ctx *cli.Context, stack *node.Node) { - debug.Memsize.Add("node", stack) - // Ntp time check if err := node.NtpCheckWithLocal(stack); err != nil { log.Fatalf("System time should be synchronized: %v", err) diff --git a/go.mod b/go.mod index 3b87654f2..99b4e00c3 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,6 @@ require ( github.com/edsrzf/mmap-go v1.0.0 github.com/ethereum/c-kzg-4844 v0.4.0 github.com/fatih/color v1.9.0 - github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 github.com/go-redis/redis/v7 v7.4.0 github.com/go-sql-driver/mysql v1.6.0 github.com/go-stack/stack v1.8.0 diff --git a/go.sum b/go.sum index 04ecb7772..2fc698420 100644 --- a/go.sum +++ b/go.sum @@ -214,8 +214,6 @@ github.com/fatih/color v1.9.0 h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/ferranbt/fastssz v0.1.3 h1:ZI+z3JH05h4kgmFXdHuR1aWYsgrg7o+Fw7/NCzM16Mo= github.com/ferranbt/fastssz v0.1.3/go.mod h1:0Y9TEd/9XuFlh7mskMPfXiI2Dkw4Ddg9EyXt1W7MRvE= -github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 h1:FtmdgXiUlNeRsoNMFlKLDt+S+6hbjVMEW6RGQ7aUf7c= -github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=