Versions in this module Expand all Collapse all v1 v1.0.1 Apr 16, 2024 v1.0.0 Apr 16, 2024 Changes in this version + const DefaultAddr + const DefaultInterval + const DefaultMaxPoints + const DefaultTemplate + const DefaultTheme + const DefaultTimeFormat + const VCStack + const VGCCPUFraction + const VGCNum + const VGCSize + const VGoroutine + const VHeap + var DefaultCfg = &config + func Addr() string + func FixedPrecision(n float64, p int) float64 + func Interval() int + func LinkAddr() string + func NewBasicView(route string) *charts.Line + func SetConfiguration(opts ...Option) + type GCCPUFractionViewer struct + func (vr *GCCPUFractionViewer) Name() string + func (vr *GCCPUFractionViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *GCCPUFractionViewer) SetStatsMgr(smgr *StatsMgr) + func (vr *GCCPUFractionViewer) View() *charts.Line + type GCNumViewer struct + func (vr *GCNumViewer) Name() string + func (vr *GCNumViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *GCNumViewer) SetStatsMgr(smgr *StatsMgr) + func (vr *GCNumViewer) View() *charts.Line + type GCSizeViewer struct + func (vr *GCSizeViewer) Name() string + func (vr *GCSizeViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *GCSizeViewer) SetStatsMgr(smgr *StatsMgr) + func (vr *GCSizeViewer) View() *charts.Line + type GoroutinesViewer struct + func (vr *GoroutinesViewer) Name() string + func (vr *GoroutinesViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *GoroutinesViewer) SetStatsMgr(smgr *StatsMgr) + func (vr *GoroutinesViewer) View() *charts.Line + type HeapViewer struct + func (vr *HeapViewer) Name() string + func (vr *HeapViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *HeapViewer) SetStatsMgr(smgr *StatsMgr) + func (vr *HeapViewer) View() *charts.Line + type Metrics struct + Time string + Values []float64 + type Option func(c *config) + func WithAddr(addr string) Option + func WithInterval(interval int) Option + func WithLinkAddr(addr string) Option + func WithMaxPoints(n int) Option + func WithTemplate(t string) Option + func WithTheme(theme Theme) Option + func WithTimeFormat(s string) Option + type StackViewer struct + func (vr *StackViewer) Name() string + func (vr *StackViewer) Serve(w http.ResponseWriter, _ *http.Request) + func (vr *StackViewer) SetStatsMgr(smgr *StatsMgr) + func (vr *StackViewer) View() *charts.Line + type StatsEntity struct + Stats *runtime.MemStats + T string + func MemStats() *StatsEntity + type StatsMgr struct + Cancel context.CancelFunc + Ctx context.Context + func NewStatsMgr(ctx context.Context) *StatsMgr + func (s *StatsMgr) Tick() + type Theme string + const ThemeMacarons + const ThemeWesteros + type Viewer interface + Name func() string + Serve func(w http.ResponseWriter, _ *http.Request) + SetStatsMgr func(smgr *StatsMgr) + View func() *charts.Line + func NewGCCPUFractionViewer() Viewer + func NewGCCPUFractionViewerWithNumCPU() Viewer + func NewGCNumViewer() Viewer + func NewGCSizeViewer() Viewer + func NewGoroutinesViewer() Viewer + func NewHeapViewer() Viewer + func NewStackViewer() Viewer