Struct tinyprof::ProfilerCounter [] [src]

pub struct ProfilerCounter {
    pub name: String,
    pub time: f64,
    pub counters: Vec<ProfilerCounter>,
    pub active_counter: Option<usize>,
}

Fields

name
time
counters
active_counter

Methods

impl ProfilerCounter

fn new(name: String) -> ProfilerCounter

fn active_counter(&mut self) -> &mut ProfilerCounter

fn parent_active_counter(&mut self) -> &mut ProfilerCounter

Trait Implementations

Derived Implementations

impl Clone for ProfilerCounter

fn clone(&self) -> ProfilerCounter

1.0.0fn clone_from(&mut self, source: &Self)