#[non_exhaustive]pub struct BundleCounts {
pub decoded: u64,
pub discarded: u64,
pub redecoded: u64,
pub runs: u64,
pub runs_held: u64,
pub runs_peak: u64,
}Expand description
What a bundle’s block reads have done since it was opened (plan section 8, R2 and R3). Its own blocks only: a nested bundle counts its own.
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.decoded: u64Every byte a block decode wrote: first decodes, measuring decodes and decodes again, a stored block copied into a run included (the blocks-info section is not a block).
discarded: u64What a decode wrote that no run kept: a block measured before a read (it ends at or before the read’s start, or every block is measured for the total) has its output dropped, and a run decoded while another thread published one covering it is dropped for that one.
redecoded: u64What a decode wrote for a block an earlier decode of this open had
already decoded: a block two spans share, decoded once for each, or a
block measured earlier and decoded again into a read’s run. A stored
block whose length the open took from its stored bytes
(crate::codec::Codecs::stores_as_is) is copied, not decoded, and
never counts here. Two threads that decode one block at once, before
either learns its length, each count a first decode.
runs: u64How many runs are cached now.
runs_held: u64The bytes the cached runs hold now: a decoded run’s length, or a stored run’s, which is a slice of the input.
runs_peak: u64The most bytes the cached runs held at once since the open. A publish drops the runs the new one covers as it caches it, so the two never count together.