/// Called before you change the top of the stack
Called before you change the top of the stack
Called before you change the top of the stack
fn change(&mut self, time: Instant, memory: usize) {
        let (old_time, old_memory) = self.last_changed;
        let ti = self.top_info();
        ti.time += time.checked_duration_since(old_time).unwrap_or_default();
        ti.memory += memory - old_memory;
        self.last_changed = (time, memory);
    }
fn change ( & mut self , time : Instant , memory : usize ) { let ( old_time , old_memory ) = self . last_changed ; let ti = self . top_info ( ) ; ti . time += time . checked_duration_since ( old_time ) . unwrap_or_default ( ) ; ti . memory += memory - old_memory ; self . last_changed = ( time , memory ) ; }
Called before you change the top of the stack
Called before you change the top of the stack
&mut self
time
Instant
memory
usize