diff options
Diffstat (limited to 'deps/v8/src/heap/object-stats.cc')
-rw-r--r-- | deps/v8/src/heap/object-stats.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/v8/src/heap/object-stats.cc b/deps/v8/src/heap/object-stats.cc index 04a7cee33b5..bd15b50b96a 100644 --- a/deps/v8/src/heap/object-stats.cc +++ b/deps/v8/src/heap/object-stats.cc @@ -821,8 +821,6 @@ void ObjectStatsCollectorImpl::CollectGlobalStatistics() { ObjectStats::STRING_SPLIT_CACHE_TYPE); RecordSimpleVirtualObjectStats(HeapObject(), heap_->regexp_multiple_cache(), ObjectStats::REGEXP_MULTIPLE_CACHE_TYPE); - RecordSimpleVirtualObjectStats(HeapObject(), heap_->retained_maps(), - ObjectStats::RETAINED_MAPS_TYPE); // WeakArrayList. RecordSimpleVirtualObjectStats(HeapObject(), @@ -1075,6 +1073,9 @@ void ObjectStatsCollectorImpl::RecordVirtualCodeDetails(Code code) { void ObjectStatsCollectorImpl::RecordVirtualContext(Context context) { if (context.IsNativeContext()) { RecordObjectStats(context, NATIVE_CONTEXT_TYPE, context.Size()); + RecordSimpleVirtualObjectStats(context, context.retained_maps(), + ObjectStats::RETAINED_MAPS_TYPE); + } else if (context.IsFunctionContext()) { RecordObjectStats(context, FUNCTION_CONTEXT_TYPE, context.Size()); } else { |