summaryrefslogtreecommitdiff
path: root/cmd/dgrep/main.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2020-03-06 18:21:02 +0000
committerPaul Buetow <pbuetow@mimecast.com>2020-03-06 18:21:02 +0000
commita4f8e0926a1a6888cbab1cfd94229cf1cc5cba7d (patch)
treefcad0dba81106afdfa615f6213d99d5954c90fea /cmd/dgrep/main.go
parent6622def60bb96652b19e5f63185b1b9cc8b01a48 (diff)
simplify and get rid of pperfv2.1.1
Diffstat (limited to 'cmd/dgrep/main.go')
-rw-r--r--cmd/dgrep/main.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd/dgrep/main.go b/cmd/dgrep/main.go
index 74a501f..9393cf6 100644
--- a/cmd/dgrep/main.go
+++ b/cmd/dgrep/main.go
@@ -9,7 +9,6 @@ import (
"github.com/mimecast/dtail/internal/color"
"github.com/mimecast/dtail/internal/config"
"github.com/mimecast/dtail/internal/io/logger"
- "github.com/mimecast/dtail/internal/pprof"
"github.com/mimecast/dtail/internal/user"
"github.com/mimecast/dtail/internal/version"
)
@@ -23,7 +22,6 @@ func main() {
var displayVersion bool
var files string
var noColor bool
- var pprofEnable bool
var regex string
var serversStr string
var silentEnable bool
@@ -35,7 +33,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")
@@ -60,10 +57,6 @@ func main() {
serverEnable := false
logger.Start(ctx, serverEnable, debugEnable, silentEnable, silentEnable)
- if pprofEnable || config.Common.PProfEnable {
- pprof.Start()
- }
-
args := clients.Args{
ConnectionsPerCPU: connectionsPerCPU,
ServersStr: serversStr,