Reviewers: jochen (slow),

Description:
Fix idle time trace printing.

BUG=

Please review this at https://codereview.chromium.org/771123002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+2, -1 lines):
  M src/heap/heap.cc


Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 389edcd961c9f8ada4dbe7bbc468ae68285daccd..8986087486995ac660de31f0d164b0a03ebc37f4 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -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) {


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to