HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gops — List and diagnose Go processes currently running on your system. More information: <https://github.c

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commanddiagnoseandgopsclicurrentlylistprocesses

Problem

How to use the gops command: List and diagnose Go processes currently running on your system. More information: <https://github.com/google/gops>.

Solution

gops — List and diagnose Go processes currently running on your system. More information: <https://github.com/google/gops>.

Print all go processes running locally:
gops


Print more information about a process:
gops {{pid}}


Display a process tree:
gops tree


Print the current stack trace from a target program:
gops stack {{pid|addr}}


Print the current runtime memory statistics:
gops memstats {{pid|addr}}

Code Snippets

Print all go processes running locally

gops

Print more information about a process

gops {{pid}}

Display a process tree

gops tree

Print the current stack trace from a target program

gops stack {{pid|addr}}

Print the current runtime memory statistics

gops memstats {{pid|addr}}

Context

tldr-pages: common/gops

Revisions (0)

No revisions yet.