Module kitsune_p2p_types::metrics
source · Expand description
Utilities for helping with metric tracking.
Structs§
- An individual metric record
- System Info.
- Increases task count on
TaskCounter::new()
, decreases on drop.
Enums§
- The type of metric recorded
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.
- Spawns a tokio task with given future/async block. Captures a new TaskCounter instance to track task count.