Skip to main content

format_cpu_cores

Function format_cpu_cores 

Source
pub fn format_cpu_cores(logical: usize, physical: Option<usize>) -> String
Expand description

Formats a CPU core topology string.

Returns "NP + NE / NT" on Intel hybrid CPUs (different max frequencies per cluster), "NC / NT" when physical < logical (hyperthreading), or "N cores" otherwise.