memory

package
v0.0.0-...-63a22fc Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package memory attempts to give useful insight into the system's memory utilisation See https://www.kernel.org/doc/Documentation/filesystems/proc.txt cat /proc/meminfo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemInfoProvider

type MemInfoProvider interface {
	Meminfo() (procfs.Meminfo, error)
}

type MemoryProbe

type MemoryProbe struct {
	Meminfo *procfs.Meminfo
}

func NewMemoryProbe

func NewMemoryProbe(p MemInfoProvider) (*MemoryProbe, error)

NewMemoryProbe creates an instance of MemoryProbe

func (*MemoryProbe) Analysis

func (p *MemoryProbe) Analysis() (observations []*analysis.Observation)

func (*MemoryProbe) Display

func (p *MemoryProbe) Display() string

Jump to

Keyboard shortcuts

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