aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/main.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-08-04 18:51:16 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-08-04 18:51:16 +0800
commitb01f2c29ae48dba0ba4a90a4c6dbbadfc313f5b1 (patch)
tree00ab530e6f28230400a65ebae7a4610f94cc1f80 /cmd/geth/main.go
parentff66e8fa2935d59d5104e324861d9e1bb517ffaa (diff)
parent5c949d3b3ba81ea0563575b19a7b148aeac4bf61 (diff)
downloadgo-tangerine-b01f2c29ae48dba0ba4a90a4c6dbbadfc313f5b1.tar.gz
go-tangerine-b01f2c29ae48dba0ba4a90a4c6dbbadfc313f5b1.tar.zst
go-tangerine-b01f2c29ae48dba0ba4a90a4c6dbbadfc313f5b1.zip
Merge pull request #1574 from fjl/fdtrack
fdtrack: hack to track file descriptor usage
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r--cmd/geth/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 511e0df9d..00dd8f753 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -38,6 +38,7 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/ethdb"
+ "github.com/ethereum/go-ethereum/fdtrack"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/metrics"
@@ -532,6 +533,9 @@ func startEth(ctx *cli.Context, eth *eth.Ethereum) {
// Start Ethereum itself
utils.StartEthereum(eth)
+ // Start logging file descriptor stats.
+ fdtrack.Start()
+
am := eth.AccountManager()
account := ctx.GlobalString(utils.UnlockedAccountFlag.Name)
accounts := strings.Split(account, " ")