Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bmhatfield/go-runtime-metrics
/ functions
Functions
10 in github.com/bmhatfield/go-runtime-metrics
⨍
Functions
10
◇
Types & classes
3
↓ 2 callers
Method
Run
Run gathers statistics from package runtime and outputs them to the configured GaugeFunc every PauseDur. This function will not return until Done has
collector/collector.go:55
↓ 2 callers
Method
outputCPUStats
(s *cpuStats)
collector/collector.go:112
↓ 2 callers
Method
outputGCStats
(m *runtime.MemStats)
collector/collector.go:145
↓ 2 callers
Method
outputMemStats
(m *runtime.MemStats)
collector/collector.go:117
↓ 2 callers
Method
outputStats
()
collector/collector.go:94
↓ 1 callers
Function
New
New creates a new Collector that will periodically output statistics to gaugeFunc. It will also set the values of the exported fields to the described
collector/collector.go:42
↓ 1 callers
Function
runCollector
()
runstats.go:32
↓ 1 callers
Method
zeroStats
zeroStats sets all the stat guages to zero. On shutdown we want to zero them out so they don't persist at their last value until we start back up.
collector/collector.go:80
Function
TestCollector
(t *testing.T)
collector/collector_test.go:8
Function
init
()
runstats.go:28