[][src]Function sys_metrics::cpu::get_cpu_logical_count

pub fn get_cpu_logical_count() -> Result<i64, Error>

Return the number of logical core the system has.

On linux it will gather the info from libc's sysconf or sched_getaffinity as a fallback.

And on macOS it will make a syscall to sysctl with hw.logicalcpu.