mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-16 10:15:56 +02:00
gops: add page (#2933)
This commit is contained in:
parent
48df949825
commit
be144ad00b
1 changed files with 24 additions and 0 deletions
24
pages/common/gops.md
Normal file
24
pages/common/gops.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# gops
|
||||||
|
|
||||||
|
> CLI tool which lists and diagnoses Go processes currently running on your system.
|
||||||
|
> Homepage: <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}}`
|
Loading…
Add table
Reference in a new issue