Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 9f5d30385bd701596c5c5e4d7147cb722e1121b4..cad175587fc1870e97c680d1297a4adc23925633 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3406,6 +3406,8 @@ void HeapProfiler::CollectStats(HeapObject* obj, HistogramInfo* info) { |
#ifdef ENABLE_LOGGING_AND_PROFILING |
void HeapProfiler::WriteSample() { |
LOG(HeapSampleBeginEvent("Heap", "allocated")); |
+ LOG(HeapSampleStats( |
+ "Heap", "allocated", Heap::Capacity(), Heap::SizeOfObjects())); |
HistogramInfo info[LAST_TYPE+1]; |
#define DEF_TYPE_NAME(name) info[name].set_name(#name); |