Lines Matching defs:timer
120 // Pause only / topmost timer in the timer stack.
122 // Commit all the timer's elapsed time to the counters.
123 RuntimeCallTimer* timer = this;
124 while (timer != nullptr) {
125 timer->CommitTimeToCounter();
126 timer = timer->parent();
198 void RuntimeCallStats::Enter(RuntimeCallTimer* timer,
203 timer->Start(counter, current_timer());
204 current_timer_.SetValue(timer);
208 void RuntimeCallStats::Leave(RuntimeCallTimer* timer) {
211 if (stack_top == nullptr) return; // Missing timer is a result of Reset().
212 CHECK(stack_top == timer);
213 current_timer_.SetValue(timer->Stop());
233 RuntimeCallTimer* timer = current_timer();
234 if (timer == nullptr) return;
236 timer->set_counter(counter);