github.com/shishir-a412ed/docker@v1.3.2-0.20180103180333-fda904911d87/daemon/stats/collector_windows.go (about) 1 package stats 2 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 8 // getSystemCPUUsage returns the host system's cpu usage in 9 // nanoseconds. An error is returned if the format of the underlying 10 // file does not match. This is a no-op on Windows. 11 func (s *Collector) getSystemCPUUsage() (uint64, error) { 12 return 0, nil 13 } 14 15 func (s *Collector) getNumberOnlineCPUs() (uint32, error) { 16 return 0, nil 17 }