mirror of
https://github.com/google/gops.git
synced 2024-11-24 08:22:25 +02:00
Update gops snippets to match the new output (#50)
* update README snippets to reflect the new output Updated the sample output in the README to match the properly tabulated output when actually running the program.
This commit is contained in:
parent
1a41b817e5
commit
f6c95cf224
27
README.md
27
README.md
@ -5,17 +5,17 @@
|
||||
|
||||
gops is a command to list and diagnose Go processes currently running on your system.
|
||||
|
||||
```
|
||||
```sh
|
||||
$ gops
|
||||
983 uplink-soecks (/usr/local/bin/uplink-soecks)
|
||||
52697 gops (/Users/jbd/bin/gops)
|
||||
4132* foops (/Users/jbd/bin/foops)
|
||||
51130 gocode (/Users/jbd/bin/gocode)
|
||||
983 980 uplink-soecks go1.9 (/usr/local/bin/uplink-soecks)
|
||||
52697 52695 gops go1.9 (/Users/jbd/bin/gops)
|
||||
4132 4130 foops* go1.9 (/Users/jbd/bin/foops)
|
||||
51130 51128 gocode go1.9 (/Users/jbd/bin/gocode)
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
```sh
|
||||
$ go get -u github.com/google/gops
|
||||
```
|
||||
|
||||
@ -60,12 +60,19 @@ To print all go processes, run `gops` without arguments:
|
||||
|
||||
```sh
|
||||
$ gops
|
||||
983 uplink-soecks (/usr/local/bin/uplink-soecks)
|
||||
52697 gops (/Users/jbd/bin/gops)
|
||||
4132* foops (/Users/jbd/bin/foops)
|
||||
51130 gocode (/Users/jbd/bin/gocode)
|
||||
983 980 uplink-soecks go1.9 (/usr/local/bin/uplink-soecks)
|
||||
52697 52695 gops go1.9 (/Users/jbd/bin/gops)
|
||||
4132 4130 foops* go1.9 (/Users/jbd/bin/foops)
|
||||
51130 51128 gocode go1.9 (/Users/jbd/bin/gocode)
|
||||
```
|
||||
|
||||
The output displays:
|
||||
* PID
|
||||
* PPID
|
||||
* name of the program
|
||||
* Go version used to build the program,
|
||||
* Location of the associated program
|
||||
|
||||
Note that processes running the agent are marked with `*` next to the PID (e.g. `4132*`).
|
||||
|
||||
#### $ gops stack (\<pid\>|\<addr\>)
|
||||
|
Loading…
Reference in New Issue
Block a user