memory

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToGigaBytes

func BytesToGigaBytes(in uint64) float64

BytesToGigaBytes converts Bytes to GigaBytes

func BytesToMegaBytes

func BytesToMegaBytes(in uint64) float64

BytesToMegaBytes converts Bytes to MegaBytes

func GetRAMAppBytes

func GetRAMAppBytes() uint64

GetRAMAppBytes returns the app ram usage in bytes

func GetRAMSystemBytes

func GetRAMSystemBytes() uint64

GetRAMSystemBytes returns the system total ram in bytes

Types

type Memory

type Memory struct {
	HeapAllocatedBytes uint64
	HeapTotalBytes     uint64
	RAMAppBytes        uint64
	RAMSystemBytes     uint64
}

Memory contains system memory information

func NewMemory

func NewMemory() *Memory

NewMemory creates a new Memory

Jump to

Keyboard shortcuts

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