fn try_start_metrics_server(args: &Opt) {
    if let Some(metrics_server_address) = &args.metrics_server_address {
        let address = metrics_server_address.clone();
        std::thread::spawn(move || {
            start_server(address);
        });
    }
}
/// Benchmarker is not a long-lived job, so starting a server and expecting it to be polled
/// continuously is not ideal. Directly pushing metrics when benchmarker is running
/// can be achieved by using Pushgateway.
Benchmarker is not a long-lived job, so starting a server and expecting it to be polled
continuously is not ideal. Directly pushing metrics when benchmarker is running
can be achieved by using Pushgateway.
Benchmarker is not a long - lived job so starting a server and expecting it to be polled continuously is not ideal . Directly pushing metrics when benchmarker is running can be achieved by using Pushgateway .
fn try_start_metrics_server(args: &Opt) {
    if let Some(metrics_server_address) = &args.metrics_server_address {
        let address = metrics_server_address.clone();
        std::thread::spawn(move || {
            start_server(address);
        });
    }
}
fn try_start_metrics_server ( args : & Opt ) { if let Some ( metrics_server_address ) = & args . metrics_server_address { let address = metrics_server_address . clone ( ) ; std :: thread :: spawn ( move | | { start_server ( address ) ; } ) ; } }
Benchmarker is not a long-lived job, so starting a server and expecting it to be polled
continuously is not ideal.
Benchmarker is not a long - lived job so starting a server and expecting it to be polled continuously is not ideal .
args
&Opt