package
module
Version:
v0.0.0-...-5bd25b8
Opens a new window with list of versions in this module.
Published: Aug 8, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
monitor
监控系统CPU和内存的使用情况
描述
实时打印当前进程占用CPU和内存的比率(用户可自行设置)
引用
- import "github.com/dongjialong2006/monitor"
使用
{
import "time"
import "github.com/dongjialong2006/monitor"
func main() {
monitor.Watch(context.Background())
time.Sleep(5*tiem.Second)
monitor.Stop()
}
}
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.