Commit a156a051 authored by nikolaos's avatar nikolaos Committed by Commit bot

Fix bug with runtime-call-stats timers

RuntimeCallTimers were not properly stopped and this made a DCHECK
in the Debug version fail.

R=cbruni@chromium.org
BUG=
LOG=N

Review-Url: https://codereview.chromium.org/1955943002
Cr-Commit-Position: refs/heads/master@{#36097}
parent 369dcca7
......@@ -505,6 +505,7 @@ class RuntimeCallTimer {
inline RuntimeCallTimer* Stop() {
base::TimeDelta delta = timer_.Elapsed();
timer_.Stop();
counter_->time += delta;
if (parent_ != NULL) {
parent_->AdjustForSubTimer(delta);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment