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