pub fn send_worker_perf(section: impl ToString, id: impl ToString, name: impl ToString, micros_per_iter: f32, iter_per_sec: f32, pending: usize) {
    DEBUG_INFO.read().unwrap().as_ref().map(|sender| {
        sender
            .send(DebugInfoUnit {
                section: section.to_string(),
                id: id.to_string(),
                part: DebugInfoPart::WorkerPerf(WorkerPerf {
                    name: name.to_string(),
                    micros_per_iter,
                    iter_per_sec,
                    efficiency: micros_per_iter / 1_000_000.0 * iter_per_sec,
                    pending,
                }),
            })
            .unwrap()
    });
}
/// Send a debug info worker perf
Send a debug info worker perf
Send a debug info worker perf
pub fn send_worker_perf(section: impl ToString, id: impl ToString, name: impl ToString, micros_per_iter: f32, iter_per_sec: f32, pending: usize) {
    DEBUG_INFO.read().unwrap().as_ref().map(|sender| {
        sender
            .send(DebugInfoUnit {
                section: section.to_string(),
                id: id.to_string(),
                part: DebugInfoPart::WorkerPerf(WorkerPerf {
                    name: name.to_string(),
                    micros_per_iter,
                    iter_per_sec,
                    efficiency: micros_per_iter / 1_000_000.0 * iter_per_sec,
                    pending,
                }),
            })
            .unwrap()
    });
}
pub fn send_worker_perf ( section : impl ToString , id : impl ToString , name : impl ToString , micros_per_iter : f32 , iter_per_sec : f32 , pending : usize ) { DEBUG_INFO . read ( ) . unwrap ( ) . as_ref ( ) . map ( | sender | { sender . send ( DebugInfoUnit { section : section . to_string ( ) , id : id . to_string ( ) , part : DebugInfoPart :: WorkerPerf ( WorkerPerf { name : name . to_string ( ) , micros_per_iter , iter_per_sec , efficiency : micros_per_iter / 1_000_000.0 * iter_per_sec , pending , } ) , } ) . unwrap ( ) } ) ; }
Send a debug info worker perf
Send a debug info worker perf
section
impl ToString
id
impl ToString
name
impl ToString
micros_per_iter
f32
iter_per_sec
f32
pending
usize
section
impl ToString
id
impl ToString
name
impl ToString
micros_per_iter
f32
iter_per_sec
f32
pending
usize