stats

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: 0BSD Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatCPU

type StatCPU struct {
	// Percent of CPU Usage
	Usage string
	// Number of CPUs
	Num int
	// CPU Arch
	Arch string
	// contains filtered or unexported fields
}

func CPU

func CPU() (*StatCPU, error)

Get CPU stats

type StatMemory

type StatMemory struct {
	Alloc      string
	TotalAlloc string
	Sys        string
	NumGC      uint32
}

func Memory

func Memory() StatMemory

Get Memory stats

Jump to

Keyboard shortcuts

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