osLevel

package
v1.11.11 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: GPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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