mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 03:55:45 +00:00
Update cheatsheets
This commit is contained in:
29
gops
Normal file
29
gops
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user