pub fn write_inspect_to(&self, parent: &inspect::Node) {
        let node = parent.create_child(self.koid.to_string());
        let samples = node.create_child("@samples");
        for (i, measurement) in self.measurements.iter().enumerate() {
            let child = samples.create_child(i.to_string());
            child.record_int("timestamp", measurement.timestamp.into_nanos());
            child.record_int("cpu_time", measurement.cpu_time.into_nanos());
            child.record_int("queue_time", measurement.queue_time.into_nanos());
            samples.record(child);
        }
        node.record(samples);
        parent.record(node);
    }
/// Writes the task measurements under the given inspect node `parent`.
Writes the task measurements under the given inspect node `parent`.
Writes the task measurements under the given inspect node ` parent ` .
pub fn write_inspect_to(&self, parent: &inspect::Node) {
        let node = parent.create_child(self.koid.to_string());
        let samples = node.create_child("@samples");
        for (i, measurement) in self.measurements.iter().enumerate() {
            let child = samples.create_child(i.to_string());
            child.record_int("timestamp", measurement.timestamp.into_nanos());
            child.record_int("cpu_time", measurement.cpu_time.into_nanos());
            child.record_int("queue_time", measurement.queue_time.into_nanos());
            samples.record(child);
        }
        node.record(samples);
        parent.record(node);
    }
pub fn write_inspect_to ( & self , parent : & inspect :: Node ) { let node = parent . create_child ( self . koid . to_string ( ) ) ; let samples = node . create_child ( " " ) ; for ( i , measurement ) in self . measurements . iter ( ) . enumerate ( ) { let child = samples . create_child ( i . to_string ( ) ) ; child . record_int ( " " , measurement . timestamp . into_nanos ( ) ) ; child . record_int ( " " , measurement . cpu_time . into_nanos ( ) ) ; child . record_int ( " " , measurement . queue_time . into_nanos ( ) ) ; samples . record ( child ) ; } node . record ( samples ) ; parent . record ( node ) ; }
Writes the task measurements under the given inspect node `parent`.
Writes the task measurements under the given inspect node ` parent ` .
&self
parent
&inspect::Node
&self
parent
&inspect::Node