Skip to content
API REFERENCEUsage guides →

cellpack::opt::CacheSummary ​

struct

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: u64

Requests in the trace.

distinct_pages ​

distinct_pages: u64

Distinct pages it names.

hits ​

hits: u64

Requests served by a retained page.

misses ​

misses: u64

Requests that read their page.

capacity_pages ​

capacity_pages: usize

Retention slots the run had, in pages.

row_hits ​

row_hits: u64

Accesses served by a cached mapped row; a page trace has none, so zero.

output_hits ​

output_hits: u64

Accesses whose output was already in the cache; a page trace has none, so zero.

Implemented traits ​

Contract 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.

Definition