Skip to main content

benchmark_profiles_isolated

Function benchmark_profiles_isolated 

Source
pub async fn benchmark_profiles_isolated<F>(
    core: &dyn ProxyCore,
    make_probe: F,
    profiles: &[ProfileConfig],
    targets: &[ProbeTarget],
) -> Result<Option<Vec<BenchmarkResult>>>
where F: Fn(&str) -> Result<Box<dyn HealthProbe>> + Send + Sync,
Expand description

Probe all profiles concurrently in an isolated session without touching the live proxy.

Returns Ok(None) when the proxy core does not support non-disruptive isolated sessions, so background daemon tasks never interrupt active traffic.