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>
impl<T: Diffable> LongCounter<T>
pub fn new( name: String, stats: Arc<SharedStats>, implicitly_start: bool, merge_phases: bool, diffable: T, ) -> Self
fn print_value(&self, val: u64)
Trait Implementations
source§impl<T: Diffable> Counter for LongCounter<T>
impl<T: Diffable> Counter for LongCounter<T>
source§fn phase_change(&mut self, old_phase: usize)
fn phase_change(&mut self, old_phase: usize)
Signal a change in GC phase. Read more
source§fn print_count(&self, phase: usize)
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
fn get_total(&self, other: Option<bool>) -> u64
Get the total count over past phases Read more
source§fn print_last(&self)
fn print_last(&self)
Print the count of the last phases
source§fn merge_phases(&self) -> bool
fn merge_phases(&self) -> bool
Whether the counter merges other and stw phases.
source§fn implicitly_start(&self) -> bool
fn implicitly_start(&self) -> bool
Whether the counter starts implicitly after creation Read more