From: Matt Joiner Date: Sun, 31 Jan 2016 07:35:51 +0000 (+1100) Subject: util/profile was replaced by github.com/anacrolix/envpprof X-Git-Tag: v1.0.0~934 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3a206d4f12c47db33fa7f86dc3cc1ff11af550cf;p=btrtrc.git util/profile was replaced by github.com/anacrolix/envpprof --- diff --git a/cmd/dht-get-peers/main.go b/cmd/dht-get-peers/main.go index f03e9fd1..a63cd52e 100644 --- a/cmd/dht-get-peers/main.go +++ b/cmd/dht-get-peers/main.go @@ -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 index 74bfae6e..00000000 --- a/util/profile/profile.go +++ /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) - } - }() - } -}