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

pub trait SmpStats {
    fn store_load(&self, affinity: usize, load: usize);
fn get_sorted_load(&self) -> ArrayVec<[(usize, usize); 256]>;
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) -> ArrayVec<[(usize, usize); 256]>

returns tuple of queue id and load ordered from highest load to lowest.

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