Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Unified Diff: src/heap/object-stats.h

Issue 2410083003: Add over allocated memory of fixed array sub types to fixed array type. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/object-stats.h
diff --git a/src/heap/object-stats.h b/src/heap/object-stats.h
index add5a12b0439e451a4307e6a4f9e7e48d29e16f6..6c35425bfe11b7eaeb723c7408124887bca1ffcc 100644
--- a/src/heap/object-stats.h
+++ b/src/heap/object-stats.h
@@ -75,6 +75,9 @@ class ObjectStats {
over_allocated;
over_allocated_histogram_[FIRST_FIXED_ARRAY_SUB_TYPE + array_sub_type]
[HistogramIndexFromSize(over_allocated)]++;
+ over_allocated_[InstanceType::FIXED_ARRAY_TYPE] += over_allocated;
+ over_allocated_histogram_[InstanceType::FIXED_ARRAY_TYPE]
+ [HistogramIndexFromSize(over_allocated)]++;
}
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698