Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessMetricsViews ¶
type ProcessMetricsViews struct {
// contains filtered or unexported fields
}
ProcessMetricsViews is a struct that contains views related to process metrics (cpu, mem, etc)
func NewProcessMetricsViews ¶
func NewProcessMetricsViews(ballastSizeBytes uint64) (*ProcessMetricsViews, error)
NewProcessMetricsViews creates a new set of ProcessMetrics (mem, cpu) that can be used to measure basic information about this process.
func (*ProcessMetricsViews) StartCollection ¶
func (pmv *ProcessMetricsViews) StartCollection()
StartCollection starts a ticker'd goroutine that will update the PMV measurements every 5 seconds
func (*ProcessMetricsViews) StopCollection ¶
func (pmv *ProcessMetricsViews) StopCollection()
StopCollection stops the collection of the process metric information.
func (*ProcessMetricsViews) Views ¶
func (pmv *ProcessMetricsViews) Views() []*view.View
Views returns the views internal to the PMV.
Click to show internal directories.
Click to hide internal directories.