Skip to content

Commit

Permalink
Merge pull request #239 from qianbin/pprof
Browse files Browse the repository at this point in the history
Pprof
  • Loading branch information
libotony authored Mar 28, 2019
2 parents e1ba320 + f1f0d72 commit aaf78dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ bin/thor -h
- `--max-peers value` maximum number of P2P network peers (P2P network disabled if set to 0) (default: 25)
- `--p2p-port value` P2P network listening port (default: 11235)
- `--nat value` port mapping mechanism (any|none|upnp|pmp|extip:<IP>) (default: "none")
- `--bootnode value` comma separated list of bootnode IDs
- `--pprof` turn on go-pprof
- `--help, -h` show help
- `--version, -v` print the version

Expand Down
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func New(chain *chain.Chain, stateCreator *state.Creator, txPool *txpool.TxPool,
router.HandleFunc("/debug/pprof/profile", pprof.Profile)
router.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
router.HandleFunc("/debug/pprof/trace", pprof.Trace)
router.PathPrefix("/debug/pprof").HandlerFunc(pprof.Index)
router.PathPrefix("/debug/pprof/").HandlerFunc(pprof.Index)
}

handler := handlers.CompressHandler(router)
Expand Down

0 comments on commit aaf78dc

Please sign in to comment.