Skip to main content

stats

Function stats 

Source
pub fn stats() -> Stats
Expand description

A snapshot of the counters of every shard alive in the process and of the blocking pools. See Stats.

let stats = nuclei::stats();
for shard in &stats.shards {
    println!("{:?}: {} tasks, {} polls", shard.worker, shard.tasks, shard.polls);
}