Skip to content

Commit

Permalink
Update gops snippets to match the new output (#50)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
dastergon authored and Emmanuel T Odeke committed Sep 13, 2017
1 parent 1a41b81 commit f6c95cf
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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\>)
Expand Down

0 comments on commit f6c95cf

Please sign in to comment.