- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for getActiveProcessorCount (0.27 sec)
-
pkg/kubelet/winstats/perfcounter_nodestats.go
// solution in hcsshim: https://github.com/microsoft/hcsshim/blob/master/internal/processorinfo/processor_count.go func ProcessorCount() int { if amount := getActiveProcessorCount(allProcessorGroups); amount != 0 { return int(amount) } return runtime.NumCPU() } func getActiveProcessorCount(groupNumber uint16) int { r0, _, _ := syscall.Syscall(procGetActiveProcessorCount.Addr(), 1, uintptr(groupNumber), 0, 0) return int(r0) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 18:37:21 UTC 2024 - 9.2K bytes - Viewed (0)