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

Unified Diff: src/heap/spaces.h

Issue 1997363002: Adds support for collecting statistics about code and its metadata. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a compile time error on the windows bots. Created 4 years, 7 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
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:

Powered by Google App Engine
This is Rietveld 408576698