diff options
Diffstat (limited to 'cmd/geth')
-rw-r--r-- | cmd/geth/main.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go index ba8bb6450..e18b92a2e 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -24,6 +24,8 @@ import ( "bufio" "fmt" "io/ioutil" + "log" + "net/http" "os" "runtime" "strconv" @@ -42,10 +44,11 @@ import ( "github.com/peterh/liner" "path" ) +import _ "net/http/pprof" const ( ClientIdentifier = "Geth" - Version = "0.9.8" + Version = "0.9.9" ) var app = utils.NewApp(Version, "the go-ethereum command line interface") @@ -255,6 +258,11 @@ JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Conso } func main() { + // Start up the default http server for pprof + go func() { + log.Println(http.ListenAndServe("localhost:6060", nil)) + }() + fmt.Printf("Welcome to the FRONTIER\n") runtime.GOMAXPROCS(runtime.NumCPU()) defer logger.Flush() |