From 1f13fca165ad9bcfdecf62e25f87267e29872b79 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Mon, 24 Sep 2012 13:03:11 +0000 Subject: [PATCH] Improve --trace-gc-verbose to show sum of all spaces. R=ulan@chromium.org Review URL: https://codereview.chromium.org/10974006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12597 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/heap.cc b/src/heap.cc index 0515019..2105301 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("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_); } -- 2.7.4