pub fn attach(&self, circuit: &Circuit<()>, handler_name: &str) {
        let self_clone = self.clone();

        circuit.register_scheduler_event_handler(handler_name, move |event| {
            if let Ok(mut this) = self_clone.0.try_borrow_mut() {
                this.scheduler_event(event);
            };
        });
    }
/// Attach CPU profiler to a circuit.  The profiler will start measuring
/// circuit's CPU usage.
Attach CPU profiler to a circuit.  The profiler will start measuring
circuit's CPU usage.
Attach CPU profiler to a circuit . The profiler will start measuring circuit ' s CPU usage .
pub fn attach(&self, circuit: &Circuit<()>, handler_name: &str) {
        let self_clone = self.clone();
        circuit.register_scheduler_event_handler(handler_name, move |event| {
            if let Ok(mut this) = self_clone.0.try_borrow_mut() {
                this.scheduler_event(event);
            };
        });
    }
pub fn attach ( & self , circuit : & Circuit < ( ) > , handler_name : & str ) { let self_clone = self . clone ( ) ; circuit . register_scheduler_event_handler ( handler_name , move | event | { if let Ok ( mut this ) = self_clone . 0 . try_borrow_mut ( ) { this . scheduler_event ( event ) ; } ; } ) ; }
Attach CPU profiler to a circuit.
Attach CPU profiler to a circuit .
&self
circuit
&Circuit<()>
handler_name
&str