View definition

func CaptureRuntimeMemStatsOnce

Defined in github.com/rcrowley/go-metrics/runtime.go

Description

Capture new values for the Go runtime statistics exported in runtime.MemStats. This is designed to be called in a background goroutine. Giving a registry which has not been given to RegisterRuntimeMemStats will panic.

Be very careful with this because runtime.ReadMemStats calls the C functions runtime·semacquire(&runtime·worldsema) and runtime·stoptheworld() and that last one does what it says on the tin.

CaptureRuntimeMemStatsOnce is referenced in 2 repositories

github.com/rcrowley/go-metrics github.com/sendgrid/tagtrics