diff --git a/README.md b/README.md index 236ed30b..b25d2bbb 100644 --- a/README.md +++ b/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 (\|\)