gsys

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SysInfo struct {
	Uptime       int // 系统运行时长
	NumGoroutine int

	MemAllocated string // 当前内存使用量
	MemTotal     string // 所有被分配的内存
	MemSys       string // 内存占用量
	Lookups      uint64 // 指针查找次数
	MemMallocs   uint64 // 内存分配次数
	MemFrees     uint64 // 内存释放次数

	NextGC       string // 下次 GC 内存回收量
	LastGC       string // 距离上次 GC 时间
	PauseTotalNs string // 暂停时间总量
	PauseNs      string // 上次 GC 暂停时间
	NumGC        uint32 // 执行次数
}

Functions

func GetInfo

func GetInfo()

Types

This section is empty.

Jump to

Keyboard shortcuts

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