psutil 5.4.0

Process and system monitoring library
Documentation
1
2
3
4
5
6
7
8
9
use crate::Count;

pub fn cpu_count() -> Count {
	num_cpus::get() as Count
}

pub fn cpu_count_physical() -> Count {
	num_cpus::get_physical() as Count
}