diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2020-03-06 18:21:02 +0000 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2020-03-06 18:21:02 +0000 |
| commit | a4f8e0926a1a6888cbab1cfd94229cf1cc5cba7d (patch) | |
| tree | fcad0dba81106afdfa615f6213d99d5954c90fea /cmd/dmap/main.go | |
| parent | 6622def60bb96652b19e5f63185b1b9cc8b01a48 (diff) | |
simplify and get rid of pperfv2.1.1
Diffstat (limited to 'cmd/dmap/main.go')
| -rw-r--r-- | cmd/dmap/main.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cmd/dmap/main.go b/cmd/dmap/main.go index f3f706a..07b7f2f 100644 --- a/cmd/dmap/main.go +++ b/cmd/dmap/main.go @@ -10,7 +10,6 @@ import ( "github.com/mimecast/dtail/internal/config" "github.com/mimecast/dtail/internal/io/logger" "github.com/mimecast/dtail/internal/omode" - "github.com/mimecast/dtail/internal/pprof" "github.com/mimecast/dtail/internal/user" "github.com/mimecast/dtail/internal/version" ) @@ -24,7 +23,6 @@ func main() { var displayVersion bool var files string var noColor bool - var pprofEnable bool var queryStr string var serversStr string var silentEnable bool @@ -36,7 +34,6 @@ func main() { flag.BoolVar(&debugEnable, "debug", false, "Activate debug messages") flag.BoolVar(&displayVersion, "version", false, "Display version") flag.BoolVar(&noColor, "noColor", false, "Disable ANSII terminal colors") - flag.BoolVar(&pprofEnable, "pprofEnable", false, "Enable pprof server") flag.BoolVar(&silentEnable, "silent", false, "Reduce output") flag.BoolVar(&trustAllHosts, "trustAllHosts", false, "Auto trust all unknown host keys") flag.IntVar(&connectionsPerCPU, "cpc", 10, "How many connections established per CPU core concurrently") @@ -61,9 +58,6 @@ func main() { serverEnable := false logger.Start(ctx, serverEnable, debugEnable, silentEnable, silentEnable) - if pprofEnable || config.Common.PProfEnable { - pprof.Start() - } args := clients.Args{ ConnectionsPerCPU: connectionsPerCPU, |
