From 78599500c65bb02ab2bf1d63a9fe6641cfd15b60 Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Wed, 5 Jun 2019 12:25:37 -0700 Subject: [PATCH] change flag name to enableMemProfiling --- cmd/harmony/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/harmony/main.go b/cmd/harmony/main.go index 111f1abb3..96a7d445f 100644 --- a/cmd/harmony/main.go +++ b/cmd/harmony/main.go @@ -97,7 +97,7 @@ var ( isNewNode = flag.Bool("is_newnode", false, "true means this node is a new node") accountIndex = flag.Int("account_index", 0, "the index of the staking account to use") shardID = flag.Int("shard_id", -1, "the shard ID of this node") - enableMemsize = flag.Bool("enableMemsize", false, "Enable memsize logging.") + enableMemProfiling = flag.Bool("enableMemProfiling", false, "Enable memsize logging.") // logConn logs incoming/outgoing connections logConn = flag.Bool("log_conn", false, "log incoming/outgoing connections") @@ -418,7 +418,7 @@ func main() { "multiaddress", fmt.Sprintf("/ip4/%s/tcp/%s/p2p/%s", *ip, *port, nodeConfig.Host.GetID().Pretty())) - if *enableMemsize { + if *enableMemProfiling { memprofiling.GetMemProfiling().Start() } go currentNode.SupportSyncing()