osLevel

package
v1.6.13-hf1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemStats

type MemStats struct {
	VmPeak   uint64
	VmSize   uint64
	VmLck    uint64
	VmPin    uint64
	VmHWM    uint64
	VmRSS    uint64
	RssAnon  uint64
	RssFile  uint64
	RssShmem uint64
	VmData   uint64
	VmStk    uint64
	VmExe    uint64
	VmLib    uint64
	VmPTE    uint64
	VmSwap   uint64
	// contains filtered or unexported fields
}

MemStats is the DTO holding the memory status for the current process

func ReadCurrentMemStats

func ReadCurrentMemStats() (*MemStats, error)

ReadCurrentMemStats will read the current mem stats at the OS level

func (*MemStats) String

func (memStats *MemStats) String() string

String will convert the values stored in a one line string value

Jump to

Keyboard shortcuts

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