Skip to content

Commit

Permalink
Merge pull request #124 from 2dvorak/2dvorak/remove-memsize
Browse files Browse the repository at this point in the history
debug: Remove memsize
  • Loading branch information
2dvorak authored Nov 6, 2024
2 parents 36494d5 + c48a210 commit 9ec35a0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion api/debug/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
3 changes: 0 additions & 3 deletions api/debug/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -39,8 +38,6 @@ import (
"gopkg.in/natefinch/lumberjack.v2"
)

var Memsize memsizeui.Handler

var (
verbosityFlag = &cli.IntFlag{
Name: "verbosity",
Expand Down
2 changes: 0 additions & 2 deletions cmd/utils/nodecmd/defaultcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 9ec35a0

Please sign in to comment.