Appearance
cellpack::opt::CacheSummary
Module contract · All interfaces
At a glance
pub struct CacheSummary {
pub page_uses: u64,
pub distinct_pages: u64,
pub hits: u64,
pub misses: u64,
pub capacity_pages: usize,
pub row_hits: u64,
pub output_hits: u64,
}What a serial run of a trace did: its page uses, and the hits and misses a capacity produced.
Fields and variants
page_uses
page_uses: u64Requests in the trace.
distinct_pages
distinct_pages: u64Distinct pages it names.
hits
hits: u64Requests served by a retained page.
misses
misses: u64Requests that read their page.
capacity_pages
capacity_pages: usizeRetention slots the run had, in pages.
row_hits
row_hits: u64Accesses served by a cached mapped row; a page trace has none, so zero.
output_hits
output_hits: u64Accesses whose output was already in the cache; a page trace has none, so zero.
Implemented traits
impl Clone for CacheSummaryimpl Debug for CacheSummaryimpl Default for CacheSummaryimpl PartialEq for CacheSummaryContract reference
See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.