List all running Go programs on a machine and see which Go version built them.
Collect a CPU or memory profile from a live Go application for performance analysis.
Remotely diagnose memory usage of a Go server running on another machine.
Manually trigger garbage collection and change GC thresholds in a running Go app.
gops is a command-line tool for inspecting Go programs running on your computer. Go is a programming language, and programs written in it have internal details like goroutines (lightweight threads), memory usage, and garbage collection settings that are not normally visible from the outside. gops gives you a way to see and interact with those details while the program is running. Running gops with no arguments lists all Go processes currently active on the machine, showing each one's process ID, parent process ID, name, the version of Go it was built with, and where the binary lives on disk. You can then pass a specific process ID to get a more detailed view: CPU usage, memory usage, the user who started it, and active network connections. For deeper diagnostics, you can embed a small agent library into your own Go program. Once that agent is running inside your program, gops can connect to it and retrieve the current call stack, memory statistics, and runtime settings. You can also trigger garbage collection manually, change the garbage collection threshold, and collect CPU or memory profiles for performance analysis. Profiles open interactively in the standard Go profiling tool. gops supports both local use (connecting to programs on the same machine by process ID) and remote use (connecting to programs on other machines by hostname and port, if the agent is configured to listen remotely). The tool is from Google and is installed with a single Go command.
← google on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.