sysinfo

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = module.Module{
	ModuleName:    "sysinfo",
	ModuleVersion: "1.0.0",
	ModuleDepends: []string{},
	ModuleEnv:     map[string]any{},
	ModuleExport:  map[string]any{},
	ModulePerm: map[string]string{
		"sysinfo.view": "查看系统信息",
	},
	EntryPoint: entry,
}

Functions

This section is empty.

Types

type RuntimeStatus

type RuntimeStatus struct {
	NumGoroutine int

	// General statistics.
	MemAllocated uint64 // bytes allocated and still in use
	MemTotal     uint64 // bytes allocated (even if freed)
	MemSys       uint64 // bytes obtained from system (sum of XxxSys below)
	Lookups      uint64 // number of pointer lookups
	MemMallocs   uint64 // number of mallocs
	MemFrees     uint64 // number of frees

	// Main allocation heap statistics.
	HeapAlloc    uint64 // bytes allocated and still in use
	HeapSys      uint64 // bytes obtained from system
	HeapIdle     uint64 // bytes in idle spans
	HeapInuse    uint64 // bytes in non-idle span
	HeapReleased uint64 // bytes released to the OS
	HeapObjects  uint64 // total number of allocated objects

	// Low-level fixed-size structure allocator statistics.
	// Inuse is bytes used now.
	// Sys is bytes obtained from system.
	StackInuse  uint64 // bootstrap stacks
	StackSys    uint64
	MSpanInuse  uint64 // mspan structures
	MSpanSys    uint64
	MCacheInuse uint64 // mcache structures
	MCacheSys   uint64
	BuckHashSys uint64 // profiling bucket hash table
	GCSys       uint64 // GC metadata
	OtherSys    uint64 // other system allocations

	// Garbage collector statistics.
	NextGC         uint64 // next run in HeapAlloc time (bytes)
	LastGC         uint64 // last run in absolute time (ns)
	LastGCRelative uint64 // last run in relative time (ns)
	PauseTotalNs   uint64
	LastPauseNs    uint64 // circular buffer of recent GC pause times, most recent at [(NumGC+255)%256]
	NumGC          uint32
}

RuntimeStatus runtime status

Jump to

Keyboard shortcuts

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