{"repo":"google/gops","free":true,"listed":false,"github":"https://github.com/google/gops","clone":"git clone https://github.com/google/gops.git","description":"A tool to list and diagnose Go processes currently running on your system","language":"Go","stars":7015,"topics":["diagnostics","heap-profile","cpu-profile","go","golang","go-tools"],"license":"BSD-3-Clause","category":"dev-tools","readme_excerpt":"gops gops is a command to list and diagnose Go processes currently running on your system. Installation To install the latest version of gops: or To install a specific gops version, for example v0.3.19: Diagnostics For processes that start the diagnostics agent, gops can report additional information such as the current stack trace, Go version, memory stats, etc. In order to start the diagnostics agent, see the hello example. 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: 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 \\ [duration] To report more information about a process, run gops followed by a PID: If an optional duration is specified in the format as expected by time.ParseDuration , the CPU usage for the given time period is reported in addition: $ gops tree To display a proces","default_branch":null,"files":null,"tree":[],"storefront":"/r/google","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/google/gops/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}