OS Manuals

/usr/bin/gops

gops is a command to list and diagnose Go processes currently running on your system.

From gops 0.3.29-r20 (os), captured 2026-11-05 by running gops --help (exit 0). permalink

gops is a tool to list and diagnose Go processes.

Usage:
  gops [flags]
  gops [command]

Examples:
  gops <cmd> <pid|addr> ...
  gops <pid> # displays process info
  gops help  # displays this help message

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  gc          Runs the garbage collector and blocks until successful.
  help        Help about any command
  memstats    Prints the allocation and garbage collection stats.
  pprof-cpu   Reads the CPU profile and launches "go tool pprof".
  pprof-heap  Reads the heap profile and launches "go tool pprof".
  process     Prints information about a Go process.
  setgc       Sets the garbage collection target percentage. To completely stop GC, set to 'off'
  stack       Prints the stack trace.
  stats       Prints runtime stats.
  trace       Runs the runtime tracer for 5 secs and launches "go tool trace".
  tree        Display parent-child tree for Go processes.
  version     Prints the Go version used to build the program.

Flags:
  -h, --help   help for gops

Use "gops [command] --help" for more information about a command.
Options (1)
OptionDescriptionSource
-h, --helphelp for gopshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.