aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2018-04-23 21:20:39 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-04-23 21:20:39 +0800
commite7067be94f0edb47b39d4fa1725bce18bdadf122 (patch)
tree03da66169154814fd5eee6a4aba2b2a3790ff739 /cmd
parent9586f2acc76f10c4a7ce364291d075997c5f8eff (diff)
downloadgo-tangerine-e7067be94f0edb47b39d4fa1725bce18bdadf122.tar
go-tangerine-e7067be94f0edb47b39d4fa1725bce18bdadf122.tar.gz
go-tangerine-e7067be94f0edb47b39d4fa1725bce18bdadf122.tar.bz2
go-tangerine-e7067be94f0edb47b39d4fa1725bce18bdadf122.tar.lz
go-tangerine-e7067be94f0edb47b39d4fa1725bce18bdadf122.tar.xz
go-tangerine-e7067be94f0edb47b39d4fa1725bce18bdadf122.tar.zst
go-tangerine-e7067be94f0edb47b39d4fa1725bce18bdadf122.zip
cmd/geth, mobile: add memsize to pprof server (#16532)
* cmd/geth, mobile: add memsize to pprof server This is a temporary change, to be reverted before the next release. * cmd/geth: fix variable name
Diffstat (limited to 'cmd')
-rw-r--r--cmd/geth/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index d500726ce..09d9c493d 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -223,6 +223,8 @@ func geth(ctx *cli.Context) error {
// 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)
+
// Start up the node itself
utils.StartNode(stack)