![Notice](/static/shared/icon/info_gm_grey_24dp.svg)
The highest tagged major version is
v3.
package
Version:
v1.2.8
Opens a new window with list of versions in this module.
Published: Oct 14, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetAPPMemory 获取当前应用程序占用的内存大小
type Useage struct {
Total uint64 `json:"total"`
Idle uint64 `json:"idle"`
Used uint64 `json:"used"`
UsedPercent float64 `json:"percent"`
}
Useage Total总量,Idle空闲,Used使用率,Collercter总量,使用量
func GetInfo() (useage Useage)
GetInfo 获取当前系统内存使用数据
Source Files
¶
Click to show internal directories.
Click to hide internal directories.