pub struct CacheCostResult {
pub optimal_budget_bytes: f64,
pub optimal_cost_us: f64,
pub optimal_miss_rate: f64,
pub optimal_hit_rate: f64,
pub cost_miss_us: f64,
pub cost_mem_us: f64,
pub items_cached: f64,
pub comparison_points: Vec<CacheCostPoint>,
}Expand description
Result of cache cost model optimization.
Fields§
§optimal_budget_bytes: f64Optimal cache budget in bytes.
optimal_cost_us: f64Total cost at optimal budget (µs/frame).
optimal_miss_rate: f64Miss rate at optimal budget.
optimal_hit_rate: f64Hit rate at optimal budget.
cost_miss_us: f64Cost breakdown: miss component (µs/frame).
cost_mem_us: f64Cost breakdown: memory component (µs/frame).
items_cached: f64Number of items that fit in optimal budget.
comparison_points: Vec<CacheCostPoint>Evidence: cost at selected comparison points.
Implementations§
Trait Implementations§
Source§impl Clone for CacheCostResult
impl Clone for CacheCostResult
Source§fn clone(&self) -> CacheCostResult
fn clone(&self) -> CacheCostResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheCostResult
impl Debug for CacheCostResult
Auto Trait Implementations§
impl Freeze for CacheCostResult
impl RefUnwindSafe for CacheCostResult
impl Send for CacheCostResult
impl Sync for CacheCostResult
impl Unpin for CacheCostResult
impl UnwindSafe for CacheCostResult
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