|
| 1 | +diff --git a/deps.bzl b/deps.bzl |
| 2 | +index da7c8c7d0..72d0fda7b 100644 |
| 3 | +--- a/deps.bzl |
| 4 | ++++ b/deps.bzl |
| 5 | +@@ -912,12 +912,6 @@ def prysm_deps(): |
| 6 | + sum = "h1:bBLctRc7kr01YGvaDfgLbTwjFNW5jdp5y5rj8XXBHfY=", |
| 7 | + version = "v0.0.0-20230517082657-f9840df7b83e", |
| 8 | + ) |
| 9 | +- go_repository( |
| 10 | +- name = "com_github_fjl_memsize", |
| 11 | +- importpath = "github.com/fjl/memsize", |
| 12 | +- sum = "h1:FtmdgXiUlNeRsoNMFlKLDt+S+6hbjVMEW6RGQ7aUf7c=", |
| 13 | +- version = "v0.0.0-20190710130421-bcb5799ab5e5", |
| 14 | +- ) |
| 15 | + go_repository( |
| 16 | + name = "com_github_flosch_pongo2_v4", |
| 17 | + importpath = "github.com/flosch/pongo2/v4", |
| 18 | +diff --git a/go.mod b/go.mod |
| 19 | +index 482659fb5..a35c2e6b7 100644 |
| 20 | +--- a/go.mod |
| 21 | ++++ b/go.mod |
| 22 | +@@ -18,7 +18,6 @@ require ( |
| 23 | + github.com/dustin/go-humanize v1.0.0 |
| 24 | + github.com/emicklei/dot v0.11.0 |
| 25 | + github.com/ethereum/go-ethereum v1.13.5 |
| 26 | +- github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 |
| 27 | + github.com/fsnotify/fsnotify v1.6.0 |
| 28 | + github.com/ghodss/yaml v1.0.0 |
| 29 | + github.com/go-yaml/yaml v2.1.0+incompatible |
| 30 | +diff --git a/go.sum b/go.sum |
| 31 | +index c15dec2fc..de8075ae0 100644 |
| 32 | +--- a/go.sum |
| 33 | ++++ b/go.sum |
| 34 | +@@ -272,8 +272,6 @@ github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= |
| 35 | + github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= |
| 36 | + github.com/ferranbt/fastssz v0.0.0-20210120143747-11b9eff30ea9 h1:9VDpsWq096+oGMDTT/SgBD/VgZYf4pTF+KTPmZ+OaKM= |
| 37 | + github.com/ferranbt/fastssz v0.0.0-20210120143747-11b9eff30ea9/go.mod h1:DyEu2iuLBnb/T51BlsiO3yLYdJC6UbGMrIkqK1KmQxM= |
| 38 | +-github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 h1:FtmdgXiUlNeRsoNMFlKLDt+S+6hbjVMEW6RGQ7aUf7c= |
| 39 | +-github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= |
| 40 | + github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= |
| 41 | + github.com/flynn/noise v1.1.0 h1:KjPQoQCEFdZDiP03phOvGi11+SVVhBG2wOWAorLsstg= |
| 42 | + github.com/flynn/noise v1.1.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= |
| 43 | +diff --git a/runtime/debug/BUILD.bazel b/runtime/debug/BUILD.bazel |
| 44 | +index db34de5e7..bd3d7bdce 100644 |
| 45 | +--- a/runtime/debug/BUILD.bazel |
| 46 | ++++ b/runtime/debug/BUILD.bazel |
| 47 | +@@ -18,7 +18,6 @@ go_library( |
| 48 | + importpath = "github.com/prysmaticlabs/prysm/v5/runtime/debug", |
| 49 | + visibility = ["//visibility:public"], |
| 50 | + deps = [ |
| 51 | +- "@com_github_fjl_memsize//memsizeui:go_default_library", |
| 52 | + "@com_github_prometheus_client_golang//prometheus:go_default_library", |
| 53 | + "@com_github_prometheus_client_golang//prometheus/promauto:go_default_library", |
| 54 | + "@com_github_sirupsen_logrus//:go_default_library", |
| 55 | +diff --git a/runtime/debug/debug.go b/runtime/debug/debug.go |
| 56 | +index ab79ec4be..45c6994c5 100644 |
| 57 | +--- a/runtime/debug/debug.go |
| 58 | ++++ b/runtime/debug/debug.go |
| 59 | +@@ -37,7 +37,6 @@ import ( |
| 60 | + "sync" |
| 61 | + "time" |
| 62 | + |
| 63 | +- "github.com/fjl/memsize/memsizeui" |
| 64 | + log "github.com/sirupsen/logrus" |
| 65 | + "github.com/urfave/cli/v2" |
| 66 | + ) |
| 67 | +@@ -45,8 +44,6 @@ import ( |
| 68 | + // Handler is the global debugging handler. |
| 69 | + var Handler = new(HandlerT) |
| 70 | + |
| 71 | +-// Memsize is the memsizeui Handler(?). |
| 72 | +-var Memsize memsizeui.Handler |
| 73 | + var ( |
| 74 | + // PProfFlag to enable pprof HTTP server. |
| 75 | + PProfFlag = &cli.BoolFlag{ |
| 76 | +@@ -351,7 +348,6 @@ func Setup(ctx *cli.Context) error { |
| 77 | + } |
| 78 | + |
| 79 | + func startPProf(address string) { |
| 80 | +- http.Handle("/memsize/", http.StripPrefix("/memsize", &Memsize)) |
| 81 | + log.WithField("addr", fmt.Sprintf("http://%s/debug/pprof", address)).Info("Starting pprof server") |
| 82 | + go func() { |
| 83 | + srv := &http.Server{ |
0 commit comments