Skip to content
API REFERENCEUsage guides →

cellpack::opt::Loads ​

struct

Module contract · All interfaces

At a glance ​

pub struct Loads {
    pub requests: f64,
    pub bytes: f64,
    pub core_seconds: f64,
    pub memory_bytes: f64,
}

What a window of accesses takes from each resource.

Fields and variants ​

requests ​

requests: f64

Read requests: one per run of pages read together, and one per extra admission (block) read.

bytes ​

bytes: f64

Bytes read.

core_seconds ​

core_seconds: f64

Worker work in core-seconds.

memory_bytes ​

memory_bytes: f64

Bytes of cached-row traffic through main memory.

Member index ​

2 of 2 members

  • addAdds another window’s loads.
  • scaledThe same loads multiplied by k .

Methods and associated constants ​

add ​

pub fn add(&mut self, o: &Loads)

Adds another window’s loads.

scaled ​

pub fn scaled(&self, k: f64) -> Loads

The same loads multiplied by k.

Implemented traits ​

impl Clone for Loads
impl Debug for Loads
impl Default for Loads
impl PartialEq for Loads

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