A server-side entry in TopGit's GitHub warehouse: google/gops, 7.0k stars, Backend, Go. A tool to list and diagnose Go processes currently running on your system
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Otherwise, you could set GOPS_CONFIG_DIR environment variables to assign your config dir.
Default, gops will use the current user's home directory(AppData on windows).
Manual
It is possible to use gops tool both in local and remote mode.
Local mode requires that you start the target binary as the same user that runs gops binary.
To use gops in a remote mode you need to know target's agent address.
In Local mode use process's PID as a target; in Remote mode target is a host:port combination.
Listing all processes running locally
To print all go processes, run gops without arguments:
To print the current memory stats, run the following command:
$ gops memstats (<pid>|<addr>)
$ gops gc (<pid>|<addr>)
If you want to force run garbage collection on the target program, run gc.
It will block until the GC is completed.
$ gops setgc (<pid>|<addr>)
Sets the garbage collection target to a certain percentage.
The following command sets it to 10%:
$ gops setgc (<pid>|<addr>) 10
The following command turns off the garbage collector:
$ gops setgc (<pid>|<addr>) off
$ gops version (<pid>|<addr>)
gops reports the Go version the target program is built with, if you run the following:
$ gops version (<pid>|<addr>)
devel +6a3c6c0 Sat Jan 14 05:57:07 2017 +0000
$ gops stats (<pid>|<addr>)
To print the runtime statistics such as number of goroutines and GOMAXPROCS.
Profiling
Pprof
gops supports CPU and heap pprof profiles. After reading either heap or CPU profile,
it shells out to the go tool pprof and let you interactively examine the profiles.
To enter the CPU profile, run:
$ gops pprof-cpu (<pid>|<addr>)
To enter the heap profile, run:
$ gops pprof-heap (<pid>|<addr>)
Execution trace
gops allows you to start the runtime tracer for 5 seconds and examine the results.
No homepage URL was recorded for google/gops in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
How active is development on google/gops?
The most recent commit recorded on google/gops was 4 months ago, based on the GitHub push timestamp. The repository has 333 forks — one of the better signals of community interest.
How many stars does google/gops have?
google/gops has 7.0k GitHub stars — refresh the page for the live number, or check github.com/google/gops. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is google/gops open source?
Yes — google/gops ships under the BSD-3-Clause license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/google/gops.
What else is in the Backend space?
google/gops is tracked by TopGit under the Backend category, alongside 6 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What topics is google/gops associated with?
GitHub's repository topics for google/gops: "cpu-profile", "diagnostics", "go", "go-tools", "golang", "heap-profile". TopGit's editorial category is Backend.
Where do I read more about google/gops?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/google/gops is the definitive source.
Read full README in the tab above.
Want a second opinion on gops?
Ask an AI that can read this page — one click and you get its take on gops.