diff options
author | Wolfy-J <[email protected]> | 2018-06-11 12:13:36 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-11 12:13:36 +0300 |
commit | efcddcc8d1b676c64cbd41a5f645bd046ba416d7 (patch) | |
tree | 8e51cde97920e62fcb03ad955933194d4af1b809 /cmd/rr | |
parent | 4e54066384b1f2cfb6684c781976d3a9288f1f7e (diff) |
no more updated
Diffstat (limited to 'cmd/rr')
-rw-r--r-- | cmd/rr/main.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/cmd/rr/main.go b/cmd/rr/main.go index 07448feb..470e4795 100644 --- a/cmd/rr/main.go +++ b/cmd/rr/main.go @@ -36,23 +36,13 @@ import ( "github.com/spf13/cobra" _ "net/http/pprof" - "os" "log" - "runtime/pprof" "net/http" ) var debugMode bool func main() { - f, err := os.Create("cpu.pprof") - if err != nil { - log.Fatal(err) - } - - pprof.StartCPUProfile(f) - defer pprof.StopCPUProfile() - go func() { log.Println(http.ListenAndServe("localhost:6060", nil)) }() |