From: mikhail.naganov@gmail.com Date: Wed, 21 Oct 2009 12:39:45 +0000 (+0000) Subject: Heap profiler: use Heap::CommittedMemory to report the "total" memory size. X-Git-Tag: upstream/4.7.83~23113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9da793a257380a339670420e95e86b81846a0958;p=platform%2Fupstream%2Fv8.git Heap profiler: use Heap::CommittedMemory to report the "total" memory size. This is the second change to eliminate reporting >100% VM memory usage. BUG=http://crbug/23623 Review URL: http://codereview.chromium.org/300029 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3104 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc index f80c9a0..bfd378d 100644 --- a/src/heap-profiler.cc +++ b/src/heap-profiler.cc @@ -603,7 +603,7 @@ static void PrintProducerStackTrace(Object* obj, void* trace) { void HeapProfiler::WriteSample() { LOG(HeapSampleBeginEvent("Heap", "allocated")); LOG(HeapSampleStats( - "Heap", "allocated", Heap::Capacity(), Heap::SizeOfObjects())); + "Heap", "allocated", Heap::CommittedMemory(), Heap::SizeOfObjects())); HistogramInfo info[LAST_TYPE+1]; #define DEF_TYPE_NAME(name) info[name].set_name(#name);