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
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);