pub struct Pool {
pub bins: Vec<(u64, u64)>,
pub tokens: u64,
pub shown: u64,
pub latency: Vec<(u32, u32)>,
pub stops: BTreeMap<String, Vec<(u32, bool)>>,
pub tail: (u64, u64),
}Expand description
The pool’s evidence: per log2 bin of fill position (positions 2^b − 1 to 2^(b+1) − 2), lessons
shown and applied; tokens and lessons shown in all; the model calls’ (tokens, ms); and per
harness, its stops’ model calls (ms, failed), what borg top shows against the harness’s stop
budget (top.rs Latency).
Fields§
§bins: Vec<(u64, u64)>§tokens: u64§shown: u64§latency: Vec<(u32, u32)>§stops: BTreeMap<String, Vec<(u32, bool)>>Keyed by a harness borg knows (harness/mod.rs ALL), the newest LATENCY_KEEP of each.
tail: (u64, u64)The tail samples’ lessons, shown past the pool, and those applied (tail_of), as borg top shows
them; also in bins.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pool
impl<'de> Deserialize<'de> for Pool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Pool
Auto Trait Implementations§
impl Freeze for Pool
impl RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl UnsafeUnpin for Pool
impl UnwindSafe for Pool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more