pub struct WorkerPolicyDiagnostics {Show 20 fields
pub controller: &'static str,
pub available_parallelism: usize,
pub initial_workers: usize,
pub maximum_workers: usize,
pub calibration_window_entries: Option<u64>,
pub slow_threshold_ns_per_entry: Option<u64>,
pub calibration_chunks: u64,
pub calibration_entries: u64,
pub calibration_work_ns: u64,
pub worker_expansions: u64,
pub outcome: WorkerPolicyOutcome,
pub outcome_reason: Option<&'static str>,
pub workers_spawned: usize,
pub peak_active_workers: usize,
pub ready_directories_at_finish: usize,
pub in_flight_directories_at_finish: usize,
pub handoff_backlog_at_finish: usize,
pub handoff_backlog_high_water: usize,
pub windows: Vec<WorkerPolicyWindow>,
pub events_truncated: bool,
}Expand description
Worker-controller configuration, trace, and terminal queue state.
Fields§
§controller: &'static strController variant exercised by this scan.
available_parallelism: usizeParallelism reported by the operating system when the scan began.
initial_workers: usizeWorkers in the pool before any adaptive decision.
maximum_workers: usizeHard maximum workers this scan could activate.
calibration_window_entries: Option<u64>Entry target for an adaptive window, or null for a fixed pool.
slow_threshold_ns_per_entry: Option<u64>Slow-service trigger, or null for a fixed pool.
calibration_chunks: u64Directory chunks folded into live controller windows.
calibration_entries: u64Entries folded into live controller windows.
calibration_work_ns: u64Worker time folded into live controller windows.
worker_expansions: u64Expansion messages that caused the consumer to create more workers.
outcome: WorkerPolicyOutcomeTerminal policy outcome.
outcome_reason: Option<&'static str>Explanation when no adaptive evaluation exists.
workers_spawned: usizeTotal worker threads created during the walk.
peak_active_workers: usizeMaximum simultaneously live worker threads, including workers waiting for work.
ready_directories_at_finish: usizeReady directories at scan completion; a complete walk must leave zero.
in_flight_directories_at_finish: usizeIn-flight directories at scan completion; a complete walk must leave zero.
handoff_backlog_at_finish: usizeObservation batches outstanding at scan completion.
handoff_backlog_high_water: usizeMaximum outstanding observation batches during the scan.
windows: Vec<WorkerPolicyWindow>Bounded controller history.
events_truncated: boolTrue when controller history exceeded the 256-event diagnostic bound.