# README
- edit server.go, add profiling to the import:
import _ "net/http/pprof"
-
run the server
-
check out the page
http://localhost:8000/count?n=10000000000
-
check out profiling page: http://localhost:8000/debug/pprof/
-
Find the bottleneck with the go tool:
$ go tool pprof http://localhost:8000/debug/pprof/profile?seconds=30s