Benign cargo Download

stats.rs

SHA-256b1227c346437c85e7e4d2507333f9ad85a97086fd0825332800ece9047655317
Malecule∅

Evidence

imports crate::loom::sync::atomic::AtomicU64 lines 1–7
1//! This file contains the types necessary to collect various types of stats.
2use crate::loom::sync::atomic::{AtomicU64, Ordering::Relaxed};
3
4/// This type contains methods to retrieve stats from a Tokio runtime.
5#[derive(Debug)]
6pub struct RuntimeStats {
7 w …
English function-word token "for" lines 21–24
21:23… s = Vec::with_capacity(worker_threads);
22 for _ in 0..worker_threads {
23 workers.push(WorkerStats {
24 park_count: Ato …
Rust creates an iterator with .iter() lines 36–42
36:39… ator<Item = &WorkerStats> {
37 self.workers.iter()
38 }
39}
40
41impl WorkerStats {
42 /// Returns the total number of times this worker thread has pa …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.