goruntime

package
v0.0.0-...-95b87ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	CgoCalls       kitmetrics.Gauge
	GoRoutines     kitmetrics.Gauge
	ThreadsCreated kitmetrics.Gauge
	HeapAlloc      kitmetrics.Gauge
	TotalAlloc     kitmetrics.Gauge
	Mallocs        kitmetrics.Gauge
	Frees          kitmetrics.Gauge
	HeapSys        kitmetrics.Gauge
	HeapIdle       kitmetrics.Gauge
	HeapInuse      kitmetrics.Gauge
	HeapReleased   kitmetrics.Gauge
	HeapObjects    kitmetrics.Gauge
	StackInuse     kitmetrics.Gauge
	StackSys       kitmetrics.Gauge
	MSpanInuse     kitmetrics.Gauge
	MSpanSys       kitmetrics.Gauge
	MCacheInuse    kitmetrics.Gauge
	MCacheSys      kitmetrics.Gauge
	BuckHashSys    kitmetrics.Gauge
	GCSys          kitmetrics.Gauge
	OtherSys       kitmetrics.Gauge
	NextGC         kitmetrics.Gauge
	LastGC         kitmetrics.Gauge
	PauseTotalNs   kitmetrics.Gauge
	PauseNs        kitmetrics.Gauge
	NumGC          kitmetrics.Gauge
	NumForcedGC    kitmetrics.Gauge
}

func NewCollector

func NewCollector(p metrics.Provider) *Collector

func (*Collector) CollectAndPublish

func (c *Collector) CollectAndPublish(ticks <-chan time.Time)

func (*Collector) Publish

func (c *Collector) Publish(stats Stats)

type Stats

type Stats struct {
	CgoCalls       int64
	GoRoutines     int
	ThreadsCreated int
	MemStats       runtime.MemStats
}

func CollectStats

func CollectStats() Stats

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL