diagnostics/task_metrics/
constants.rs1use lazy_static::lazy_static;
6use std::time::Duration;
7
8pub const CPU_SAMPLE_PERIOD: Duration = Duration::from_secs(60);
9pub const COMPONENT_CPU_MAX_SAMPLES: usize = 60;
10pub const MAX_DEAD_TASKS: usize = 90;
11pub const TIMESTAMPS: &'static str = "timestamps";
12pub const CPU_TIMES: &'static str = "cpu_times";
13pub const QUEUE_TIMES: &'static str = "queue_times";
14
15lazy_static! {
16 pub static ref MEASUREMENT_EPSILON: Duration = CPU_SAMPLE_PERIOD / 6;
17}