Index: src/heap/spaces.h |
diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
index 67e9aae114326e8a57f55751115c063882b30712..072fa22f39e4166ba15b94dac3b25fe0bdee0890 100644 |
--- a/src/heap/spaces.h |
+++ b/src/heap/spaces.h |
@@ -2236,6 +2236,12 @@ class PagedSpace : public Space { |
// The dummy page that anchors the linked list of pages. |
Page* anchor() { return &anchor_; } |
+ // Collect code size related statistics |
+ void CollectCodeStatistics(); |
+ |
+ // Reset code size related statistics |
+ static void ResetCodeAndMetadataStatistics(Isolate* isolate); |
+ |
#ifdef VERIFY_HEAP |
// Verify integrity of this space. |
virtual void Verify(ObjectVisitor* visitor); |
@@ -2253,7 +2259,6 @@ class PagedSpace : public Space { |
void ReportStatistics(); |
// Report code object related statistics |
- void CollectCodeStatistics(); |
static void ReportCodeStatistics(Isolate* isolate); |
static void ResetCodeStatistics(Isolate* isolate); |
#endif |
@@ -3061,6 +3066,9 @@ class LargeObjectSpace : public Space { |
LargePage* first_page() { return first_page_; } |
+ // Collect code statistics. |
+ void CollectCodeStatistics(); |
+ |
#ifdef VERIFY_HEAP |
virtual void Verify(); |
#endif |
@@ -3068,7 +3076,6 @@ class LargeObjectSpace : public Space { |
#ifdef DEBUG |
void Print() override; |
void ReportStatistics(); |
- void CollectCodeStatistics(); |
#endif |
private: |