pkg.re/essentialkaos/ek.10@v12.41.0+incompatible/system/info_cpu_darwin.go (about) 1 package system 2 3 // ////////////////////////////////////////////////////////////////////////////////// // 4 // // 5 // Copyright (c) 2022 ESSENTIAL KAOS // 6 // Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> // 7 // // 8 // ////////////////////////////////////////////////////////////////////////////////// // 9 10 import ( 11 "time" 12 ) 13 14 // ////////////////////////////////////////////////////////////////////////////////// // 15 16 // ❗ GetCPUUsage returns info about CPU usage 17 func GetCPUUsage(duration time.Duration) (*CPUUsage, error) { 18 panic("UNSUPPORTED") 19 return nil, nil 20 } 21 22 // ❗ CalculateCPUUsage calcualtes CPU usage based on CPUStats 23 func CalculateCPUUsage(c1, c2 *CPUStats) *CPUUsage { 24 panic("UNSUPPORTED") 25 return nil 26 } 27 28 // ❗ GetCPUStats returns basic CPU stats 29 func GetCPUStats() (*CPUStats, error) { 30 panic("UNSUPPORTED") 31 return nil, nil 32 } 33 34 // ❗ GetCPUInfo returns slice with info about CPUs 35 func GetCPUInfo() ([]*CPUInfo, error) { 36 panic("UNSUPPORTED") 37 return nil, nil 38 }