shad-go/lectures/11-runtime/pprof/main.go

17 lines
176 B
Go
Raw Normal View History

package main
import (
"net/http"
_ "net/http/pprof"
)
func main() {
for i := 0; i < 10000; i++ {
go func() {
select {}
}()
}
http.ListenAndServe(":8080", nil)
}