summaryrefslogtreecommitdiff
path: root/internal/pprof
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pprof')
-rw-r--r--internal/pprof/pprof.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/internal/pprof/pprof.go b/internal/pprof/pprof.go
deleted file mode 100644
index c6d11ca..0000000
--- a/internal/pprof/pprof.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package pprof
-
-import (
- "fmt"
- "net/http"
- _ "net/http"
- _ "net/http/pprof"
-
- "github.com/mimecast/dtail/internal/config"
- "github.com/mimecast/dtail/internal/io/logger"
-)
-
-// Start the profiler HTTP server.
-func Start() {
- bindAddr := fmt.Sprintf("%s:%d", config.Common.PProfBindAddress, config.Common.PProfPort)
- logger.Info("Starting PProf server", bindAddr)
- go http.ListenAndServe(bindAddr, nil)
-}