Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index dc9ffc51186be1c5535297c6adf77f9efbf922b1..f797565c312cf31be07315640ef234d28b8bf304 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -784,12 +784,13 @@ void Deoptimizer::DoComputeOutputFrames() { |
} |
// Print some helpful diagnostic information. |
- int64_t start = OS::Ticks(); |
if (FLAG_log_timer_events && |
compiled_code_->kind() == Code::OPTIMIZED_FUNCTION) { |
LOG(isolate(), CodeDeoptEvent(compiled_code_)); |
} |
+ ElapsedTimer timer; |
if (trace_) { |
+ timer.Start(); |
PrintF("[deoptimizing (DEOPT %s): begin 0x%08" V8PRIxPTR " ", |
MessageFor(bailout_type_), |
reinterpret_cast<intptr_t>(function_)); |
@@ -870,7 +871,7 @@ void Deoptimizer::DoComputeOutputFrames() { |
// Print some helpful diagnostic information. |
if (trace_) { |
- double ms = static_cast<double>(OS::Ticks() - start) / 1000; |
+ double ms = timer.Elapsed().InMillisecondsF(); |
int index = output_count_ - 1; // Index of the topmost frame. |
JSFunction* function = output_[index]->GetFunction(); |
PrintF("[deoptimizing (%s): end 0x%08" V8PRIxPTR " ", |