Trait bastion_executor::load_balancer::SmpStats [−][src]
pub trait SmpStats {
fn store_load(&self, affinity: usize, load: usize);
fn get_sorted_load(&self) -> ArrayVec<(usize, usize), MAX_CORE>;
fn mean(&self) -> usize;
fn update_mean(&self);
}
Expand description
Stats of all the smp queues.
Required methods
fn store_load(&self, affinity: usize, load: usize)
fn store_load(&self, affinity: usize, load: usize)
Stores the load of the given queue.
returns tuple of queue id and load ordered from highest load to lowest.
fn update_mean(&self)
fn update_mean(&self)
update the smp mean.