package
Version:
v1.4.1
Opens a new window with list of versions in this module.
Published: Nov 16, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Process struct {
Alloc uint64 `json:"alloc"`
TotalAlloc uint64 `json:"total_alloc"`
Sys uint64 `json:"sys"`
NumGc uint32 `json:"num_gc"`
}
Process 进程内存信息
GetProcessMemory get process memory
type System struct {
Total uint64 `json:"total"`
Free uint64 `json:"free"`
UsagePercent float64 `json:"usage_percent"`
}
System 系统内存信息
func GetSystemMemory() *System
GetSystemMemory get system memory
Source Files
¶
Click to show internal directories.
Click to hide internal directories.