Skip to main content

detect_host_profile

Function detect_host_profile 

Source
pub fn detect_host_profile() -> HostResourceProfile
Available on crate feature autotune only.
Expand description

Detects host profile from runtime and lightweight OS hints.

§Examples

use http_handle::runtime_autotune::detect_host_profile;
let p = detect_host_profile();
assert!(p.cpu_cores >= 1);

§Panics

This function does not panic.