Reviewers: ulan,

https://codereview.chromium.org/10974006/diff/1/src/heap.cc
File src/heap.cc (right):

https://codereview.chromium.org/10974006/diff/1/src/heap.cc#newcode374
src/heap.cc:374: PrintPID("Sum of all spaces,  used: %6" V8_PTR_PREFIX
"d KB"
I am not sure how to name this line, maybe you have a better
description.

Description:
Improve --trace-gc-verbose to show sum of all spaces.

[email protected]


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

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/heap.cc


Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index 0515019630ad1d7e69f0f3b788072b50b090681c..d98f8062b6f5281adac6468bf91b8b75d9420300 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -371,6 +371,12 @@ void Heap::PrintShortHeapStatistics() {
            lo_space_->SizeOfObjects() / KB,
            lo_space_->Available() / KB,
            lo_space_->CommittedMemory() / KB);
+  PrintPID("Sum of 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