Revision: 3104
Author: [email protected]
Date: Wed Oct 21 05:39:45 2009
Log: 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
http://code.google.com/p/v8/source/detail?r=3104

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

=======================================
--- /branches/bleeding_edge/src/heap-profiler.cc        Tue Oct 20 16:25:05 2009
+++ /branches/bleeding_edge/src/heap-profiler.cc        Wed Oct 21 05:39:45 2009
@@ -603,7 +603,7 @@
  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);

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

Reply via email to