Revision: 12597
Author:   [email protected]
Date:     Mon Sep 24 06:03:11 2012
Log:      Improve --trace-gc-verbose to show sum of all spaces.

[email protected]

Review URL: https://codereview.chromium.org/10974006
http://code.google.com/p/v8/source/detail?r=12597

Modified:
 /branches/bleeding_edge/src/heap.cc

=======================================
--- /branches/bleeding_edge/src/heap.cc Wed Sep 19 03:06:02 2012
+++ /branches/bleeding_edge/src/heap.cc Mon Sep 24 06:03:11 2012
@@ -371,6 +371,12 @@
            lo_space_->SizeOfObjects() / KB,
            lo_space_->Available() / KB,
            lo_space_->CommittedMemory() / KB);
+  PrintPID("All spaces,         used: %6" V8_PTR_PREFIX "d KB"
+               ", available: %6" V8_PTR_PREFIX "d KB"
+               ", committed: %6" V8_PTR_PREFIX "d KB\n",
+           this->SizeOfObjects() / KB,
+           this->Available() / KB,
+           this->CommittedMemory() / KB);
   PrintPID("Total time spent in GC  : %d ms\n", total_gc_time_ms_);
 }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to