From efcddcc8d1b676c64cbd41a5f645bd046ba416d7 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Mon, 11 Jun 2018 12:13:36 +0300 Subject: no more updated --- cmd/rr/main.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'cmd/rr/main.go') 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)) }() -- cgit v1.2.3