1
0
Fork 0
mirror of https://github.com/vbatts/talks.git synced 2024-12-27 09:06:30 +00:00
talks/2013/03-golang-learning-lunch/7-prof/main.go

19 lines
254 B
Go
Raw Normal View History

2016-12-05 15:44:45 +00:00
package main
import (
"log"
"net/http"
_ "net/http/pprof"
"time"
)
func main() {
go func(){ log.Println(http.ListenAndServe("localhost:6060",nil))}()
log.Println("Sleeping")
for {
log.Print(".")
time.Sleep(3 * time.Second)
}
}