grmon

Command line monitoring for goroutines

Github星跟蹤圖

grmon

Command line monitoring for goroutines

Install

go get -u github.com/bcicen/grmon

Usage

Simply import and call grmon.Start() somewhere in your code:

import "github.com/bcicen/grmon/agent"
...
grmon.Start()

alternatively, you may just start the pprof server directly:

import (
	"net/http"
	_ "net/http/pprof"
)
...
go http.ListenAndServe(":1234", nil)

now grmon can connect to the running program:

grmon

By default, grmon will automatically refresh every 5s. Pause automatic refresh(p) to enable the cursor and expand the full trace for a selected goroutine(<enter>).

Keybindings

Key, Action
---, ---
r, manually refresh
p, pause/unpause automatic updates
s, toggle sort column and refresh
f, filter by keyword
<up>,<down>,j,k, move cursor position
<enter>,o, expand trace under cursor
t, open trace in full screen mode
q, exit grmon

Options

Option, Description, Default
---, ---, ---
-i, time in seconds between refresh, 0 to disable, 5
-host, target host, localhost:1234
-endpoint, target endpoint path, /debug/pprof

Roadmap

  • Hierarchal/tree display

主要指標

概覽
名稱與所有者bcicen/grmon
主編程語言Go
編程語言Go (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2018-02-26 02:36:08
推送於2023-07-18 07:29:14
最后一次提交2021-10-13 12:06:13
發布數1
最新版本名稱v0.1 (發布於 )
第一版名稱v0.1 (發布於 )
用户参与
星數1.9k
關注者數34
派生數56
提交數45
已啟用問題?
問題數8
打開的問題數1
拉請求數1
打開的拉請求數3
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?