Trait mmtk::scheduler::work_counter::WorkCounter
source · pub(super) trait WorkCounter: WorkCounterClone + Debug + Send {
// Required methods
fn start(&mut self);
fn stop(&mut self);
fn name(&self) -> String;
fn get_base(&self) -> &WorkCounterBase;
}
Expand description
An abstraction of work counters
Use for trait objects, as we have might have types of work counters for the same work packet and the types are not statically known. The overhead should be negligible compared with the cost of executing a work packet.
Required Methods§
sourcefn get_base(&self) -> &WorkCounterBase
fn get_base(&self) -> &WorkCounterBase
Return a reference to WorkCounterBase