LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gops

Go process diagnostic tool

TLDR

List Go processes
$ gops
copy
Show process details
$ gops [pid]
copy
Dump stack trace
$ gops stack [pid]
copy
Memory statistics
$ gops memstats [pid]
copy
CPU profile
$ gops pprof-cpu [pid]
copy

SYNOPSIS

gops [command] [pid]

DESCRIPTION

gops lists and diagnoses Go processes running on the system. It identifies Go programs and provides debugging commands including stack traces, memory statistics, and CPU/heap profiling.For full diagnostic capabilities, the gops agent must be imported in target programs. Basic process identification works without the agent.

PARAMETERS

PID

Process ID.
stack PID
Print stack trace.
memstats PID
Show memory stats.
pprof-cpu PID
CPU profile.
pprof-heap PID
Heap profile.
gc PID
Trigger garbage collection.
--help
Display help information.

INSTALL

sudo dnf install gops
copy
sudo apk add gops
copy
sudo zypper install gops
copy
brew install gops
copy
nix profile install nixpkgs#gops
copy

CAVEATS

Full features need agent imported. Works with compatible Go versions. Some info from /proc.

HISTORY

gops was created by Jaana Dogan at Google to provide a diagnostic tool for Go processes.

SEE ALSO

go-tool(1), pprof(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid