fn interrupted_stats(&self) -> (usize, Duration) {
        // We don't have another way to access histogram data right now, other than encoding the histogram.
        let mut registry = vise::Registry::empty();
        registry.register_metrics(self);
        let mut buffer = String::new();
        registry
            .encode(&mut buffer, vise::Format::OpenMetrics)
            .unwrap();

        let mut count = None;
        let mut sum = None;
        for line in buffer.lines() {
            if let Some(count_str) = line.strip_prefix("interrupted_latency_count ") {
                count = Some(count_str.trim().parse::<usize>().unwrap());
            } else if let Some(sum_str) = line.strip_prefix("interrupted_latency_sum ") {
                let sum_secs = sum_str.parse::<f64>().unwrap();
                sum = Some(Duration::from_secs_f64(sum_secs));
            }
        }
        (count.expect("no count"), sum.expect("no sum"))
    }
Gets number of interrupted VM runs.
core/node/api_server/src/tx_sender/tests/mod.rs