github.com/whoyao/protocol@v0.0.0-20230519045905-2d8ace718ca5/utils/cpu_nonlinux.go (about)

     1  //go:build !linux
     2  
     3  package utils
     4  
     5  func newPlatformCPUMonitor() (platformCPUMonitor, error) {
     6  	return newOsstatCPUMonitor()
     7  }