2019-04-19 00:19:09 +01:00
|
|
|
# gops
|
|
|
|
|
|
|
|
> CLI tool which lists and diagnoses Go processes currently running on your system.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://github.com/google/gops>.
|
2019-04-19 00:19:09 +01:00
|
|
|
|
|
|
|
- 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}}`
|