Fix idle time trace printing.
authorHannes Payer <hpayer@chromium.org>
Tue, 2 Dec 2014 09:27:41 +0000 (10:27 +0100)
committerHannes Payer <hpayer@chromium.org>
Tue, 2 Dec 2014 09:27:55 +0000 (09:27 +0000)
BUG=
R=jochen@chromium.org

Review URL: https://codereview.chromium.org/771123002

Cr-Commit-Position: refs/heads/master@{#25599}

src/heap/heap.cc

index 389edcd..8986087 100644 (file)
@@ -4541,7 +4541,8 @@ bool Heap::IdleNotification(double deadline_in_seconds) {
     PrintF(
         "Idle notification: requested idle time %.2f ms, used idle time %.2f "
         "ms, deadline usage %.2f ms [",
-        idle_time_in_ms, current_time, deadline_difference);
+        idle_time_in_ms, idle_time_in_ms - deadline_difference,
+        deadline_difference);
     action.Print();
     PrintF("]");
     if (FLAG_trace_idle_notification_verbose) {