|
| 1 | +diff --git a/go.mod b/go.mod |
| 2 | +index 482659fb5..a35c2e6b7 100644 |
| 3 | +--- a/go.mod |
| 4 | ++++ b/go.mod |
| 5 | +@@ -18,7 +18,6 @@ require ( |
| 6 | + github.com/dustin/go-humanize v1.0.0 |
| 7 | + github.com/emicklei/dot v0.11.0 |
| 8 | + github.com/ethereum/go-ethereum v1.13.5 |
| 9 | +- github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 |
| 10 | + github.com/fsnotify/fsnotify v1.6.0 |
| 11 | + github.com/ghodss/yaml v1.0.0 |
| 12 | + github.com/go-yaml/yaml v2.1.0+incompatible |
| 13 | +diff --git a/runtime/debug/debug.go b/runtime/debug/debug.go |
| 14 | +index ab79ec4be..45c6994c5 100644 |
| 15 | +--- a/runtime/debug/debug.go |
| 16 | ++++ b/runtime/debug/debug.go |
| 17 | +@@ -37,7 +37,6 @@ import ( |
| 18 | + "sync" |
| 19 | + "time" |
| 20 | + |
| 21 | +- "github.com/fjl/memsize/memsizeui" |
| 22 | + log "github.com/sirupsen/logrus" |
| 23 | + "github.com/urfave/cli/v2" |
| 24 | + ) |
| 25 | +@@ -45,8 +44,6 @@ import ( |
| 26 | + // Handler is the global debugging handler. |
| 27 | + var Handler = new(HandlerT) |
| 28 | + |
| 29 | +-// Memsize is the memsizeui Handler(?). |
| 30 | +-var Memsize memsizeui.Handler |
| 31 | + var ( |
| 32 | + // PProfFlag to enable pprof HTTP server. |
| 33 | + PProfFlag = &cli.BoolFlag{ |
| 34 | +@@ -351,7 +348,6 @@ func Setup(ctx *cli.Context) error { |
| 35 | + } |
| 36 | + |
| 37 | + func startPProf(address string) { |
| 38 | +- http.Handle("/memsize/", http.StripPrefix("/memsize", &Memsize)) |
| 39 | + log.WithField("addr", fmt.Sprintf("http://%s/debug/pprof", address)).Info("Starting pprof server") |
| 40 | + go func() { |
| 41 | + srv := &http.Server{ |
0 commit comments