Module kitsune_p2p_types::metrics
source · [−]Expand description
Utilities for helping with metric tracking.
Structs
System Info.
Increases task count on
TaskCounter::new()
, decreases on drop.Functions
Capture current sys_info metrics. Be sure you invoked
init_sys_info_poll
.Initialize polling of system usage info
Spawns a tokio task with given future/async block.
Captures a new TaskCounter instance to track task count.