collector_windows.go 548 B

12345678910111213141516171819
  1. // +build windows
  2. package stats
  3. // platformNewStatsCollector performs platform specific initialisation of the
  4. // Collector structure. This is a no-op on Windows.
  5. func platformNewStatsCollector(s *Collector) {
  6. }
  7. // getSystemCPUUsage returns the host system's cpu usage in
  8. // nanoseconds. An error is returned if the format of the underlying
  9. // file does not match. This is a no-op on Windows.
  10. func (s *Collector) getSystemCPUUsage() (uint64, error) {
  11. return 0, nil
  12. }
  13. func (s *Collector) getNumberOnlineCPUs() (uint32, error) {
  14. return 0, nil
  15. }