diff options
| author | Paul Bütow <pbuetow@mimecast.com> | 2020-02-16 18:07:36 +0000 |
|---|---|---|
| committer | Paul Bütow <pbuetow@mimecast.com> | 2020-02-16 18:07:36 +0000 |
| commit | e0f4ccc46c8601f322640b72e100f973a837ef02 (patch) | |
| tree | 61a1fcf66daea222da19500b0b6ae60d1e89a5d9 /internal/pprof | |
| parent | 6bca637513e065a33cadaccad97ada25eb7a6b00 (diff) | |
server kills subprocesses correctly on cancel
Diffstat (limited to 'internal/pprof')
| -rw-r--r-- | internal/pprof/pprof.go | 18 |
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) -} |
