]> Sergey Matveev's repositories - btrtrc.git/blobdiff - util/profile/profile.go
util/profile was replaced by github.com/anacrolix/envpprof
[btrtrc.git] / util / profile / profile.go
diff --git a/util/profile/profile.go b/util/profile/profile.go
deleted file mode 100644 (file)
index 74bfae6..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-package profile
-
-import (
-       "log"
-       "net/http"
-       _ "net/http/pprof"
-       "os"
-)
-
-func init() {
-       if httpAddr := os.Getenv("GOPROF"); httpAddr != "" {
-               go func() {
-                       err := http.ListenAndServe(httpAddr, nil)
-                       if err != nil {
-                               log.Print(err)
-                       }
-               }()
-       }
-}