From 5cc8e840d501a38678d49ae0df495c490061ac34 Mon Sep 17 00:00:00 2001 From: Jaana Burcu Dogan Date: Thu, 3 Nov 2016 22:48:44 -0700 Subject: [PATCH] fix help text --- gops.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gops.go b/gops.go index cf3b43d..824fa02 100644 --- a/gops.go +++ b/gops.go @@ -20,14 +20,13 @@ import ( ) const helpText = `Usage: gops is a tool to list and diagnose Go processes. + gops Lists all Go processes currently running. + gops [options...] See the section below. - gops Lists all Go processes currently running. - -Advanced tools, requires gops agent: - gops stack -p pid Prints the stack trace of the process. - gops gc -p pid Runs the garbage collector. - gops gcstats -p pid Prints the GC stats of the process. - gops help Prints this help message. +Options: (All requires the agent and the -p= flag.) + -stack Prints the stack trace. + -gc Runs the garbage collector and blocks until successful. + -gcstats Prints the garbage collection stats. ` var (