[][src]Trait bastion_executor::load_balancer::SmpStats

pub trait SmpStats {
    fn store_load(&self, affinity: usize, load: usize);
fn get_sorted_load(&self) -> Vec<(usize, usize)>;
fn mean(&self) -> usize;
fn update_mean(&self); }

Stats of all the smp queues.

Required methods

fn store_load(&self, affinity: usize, load: usize)

Stores the load of the given queue.

fn get_sorted_load(&self) -> Vec<(usize, usize)>

returns tuple of queue id and load in an sorted order.

fn mean(&self) -> usize

mean of the all smp queue load.

fn update_mean(&self)

update the smp mean.

Loading content...

Implementors

impl SmpStats for Stats[src]

Loading content...