mmtk::util::statistics::counter::long_counter

Type Alias Timer

source
pub type Timer = LongCounter<MonotoneNanoTime>;

Aliased Type§

struct Timer {
    name: String,
    pub implicitly_start: bool,
    merge_phases: bool,
    count: Vec<u64>,
    diffable: MonotoneNanoTime,
    start_value: Option<Instant>,
    total_count: u64,
    running: bool,
    stats: Arc<SharedStats>,
}

Fields§

§name: String§implicitly_start: bool§merge_phases: bool§count: Vec<u64>§diffable: MonotoneNanoTime§start_value: Option<Instant>§total_count: u64§running: bool§stats: Arc<SharedStats>

Implementations

source§

impl<T: Diffable> LongCounter<T>

source

pub fn new( name: String, stats: Arc<SharedStats>, implicitly_start: bool, merge_phases: bool, diffable: T, ) -> Self

source

fn print_value(&self, val: u64)

Trait Implementations

source§

impl<T: Diffable> Counter for LongCounter<T>

source§

fn start(&mut self)

Start the counter
source§

fn stop(&mut self)

Stop the counter
source§

fn phase_change(&mut self, old_phase: usize)

Signal a change in GC phase. Read more
source§

fn print_count(&self, phase: usize)

Print the counter value for a particular phase Read more
source§

fn get_total(&self, other: Option<bool>) -> u64

Get the total count over past phases Read more
source§

fn print_total(&self, other: Option<bool>)

Print the total count over past phases Read more
source§

fn print_min(&self, other: bool)

Print the minimum count of the past phases Read more
source§

fn print_max(&self, other: bool)

Print the maximum count of the past phases Read more
source§

fn print_last(&self)

Print the count of the last phases
source§

fn merge_phases(&self) -> bool

Whether the counter merges other and stw phases.
source§

fn implicitly_start(&self) -> bool

Whether the counter starts implicitly after creation Read more
source§

fn name(&self) -> &String

Get the name of the counter
source§

impl<T: Diffable> Debug for LongCounter<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more