MCPcopy Create free account
hub / github.com/Loafter/WebTop / GetCPUSample

Function GetCPUSample

SystemStat.go:118–120  ·  view source on GitHub ↗

GetCPUSample takes a snapshot of kernel statistics from the /proc/stat file.

()

Source from the content-addressed store, hash-verified

116
117// GetCPUSample takes a snapshot of kernel statistics from the /proc/stat file.
118func GetCPUSample() (samp CPUSample) {
119 return getCPUSample("/proc/stat")
120}
121
122// GetProcCPUSample takes a snapshot of kernel statistics from the /proc/stat file.
123func GetProcCPUSample() (samp ProcCPUSample) {

Callers 1

mesureCPUMethod · 0.85

Calls 1

getCPUSampleFunction · 0.85

Tested by

no test coverage detected