Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCpuBusy ¶
func GetCpuTotal ¶
func GetCpuUtil ¶
Types ¶
type CpuState ¶
type CpuState struct { // 上次执行时间 Time int64 Cpu *CpuTimeCsStat Ctxt int64 Sirq int64 Hirq int64 }
type CpuTimeCsStat ¶
type CpuTimeCsStat struct {
M []CpuTimesStatExt
}
func (*CpuTimeCsStat) Gauge ¶
func (st *CpuTimeCsStat) Gauge(other *CpuTimeCsStat) map[string]CpuTimesStatExt
Click to show internal directories.
Click to hide internal directories.