]> Sergey Matveev's repositories - btrtrc.git/commitdiff
util/profile was replaced by github.com/anacrolix/envpprof
authorMatt Joiner <anacrolix@gmail.com>
Sun, 31 Jan 2016 07:35:51 +0000 (18:35 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 31 Jan 2016 07:35:51 +0000 (18:35 +1100)
cmd/dht-get-peers/main.go
util/profile/profile.go [deleted file]

index f03e9fd1c721bbf1a92fd7143e03d9b427b3f9e0..a63cd52ec2cb380535d8665066ec8156fb45d5e2 100644 (file)
@@ -12,7 +12,6 @@ import (
        _ "github.com/anacrolix/envpprof"
 
        "github.com/anacrolix/torrent/dht"
-       _ "github.com/anacrolix/torrent/util/profile"
 )
 
 var (
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)
-                       }
-               }()
-       }
-}