#[non_exhaustive]pub struct DecoderStats {Show 14 fields
pub path: DecoderPath,
pub configured_workers: usize,
pub worker_limit: usize,
pub active_workers: usize,
pub busy_workers: usize,
pub spawned_workers: usize,
pub auxiliary_threads: usize,
pub best_workers: Option<usize>,
pub decompressed_bytes: u64,
pub consumed_bytes: u64,
pub member_count: u64,
pub decode_throughput_bps: f64,
pub consumer_throughput_bps: f64,
pub pressure: DecoderPressure,
}Expand description
Approximate, lock-free snapshot of a running decoder.
Fields are loaded independently with relaxed atomic ordering. A snapshot is therefore suitable for telemetry and scheduling feedback, but is not a transactionally consistent record of a single instant.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: DecoderPathDecoder implementation selected for the input.
configured_workers: usizeImmutable maximum worker budget supplied to the builder.
worker_limit: usizeCurrent application-controlled ceiling on decoder workers.
active_workers: usizeEffective decode-concurrency target after application and adaptive limits.
This is an admission target, not the number of tasks currently executing or the number of live operating-system threads.
busy_workers: usizeApproximate number of decoder workers, or the synchronous sequential caller, currently decoding.
spawned_workers: usizeLive decoder-worker operating-system threads.
This can temporarily exceed Self::active_workers while a lower limit
takes effect. In particular, a worker that owns a completed result may
remain parked on a bounded handoff until output advances or the decode is
cancelled.
auxiliary_threads: usizeLive coordinator and scanner operating-system threads.
best_workers: Option<usize>Empirically selected worker count, once calibration has completed.
decompressed_bytes: u64Decompressed bytes emitted into the final output handoff.
consumed_bytes: u64Decompressed bytes returned through std::io::Read.
member_count: u64Completed framing units: gzip members, or one zlib/raw stream.
decode_throughput_bps: f64Average decoded-output production rate since decoder startup.
consumer_throughput_bps: f64Average std::io::Read consumption rate since decoder startup.
pressure: DecoderPressureCurrent high-level decoder pressure classification.
Trait Implementations§
Source§impl Clone for DecoderStats
impl Clone for DecoderStats
Source§fn clone(&self) -> DecoderStats
fn clone(&self) -> DecoderStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more