Index: src/v8-counters.h |
diff --git a/src/v8-counters.h b/src/v8-counters.h |
index 04f57f7393fdc2cceba75929c1272d2c7bfef88a..476021cdbb90182e1f82d6c8253007e7eadd2f9a 100644 |
--- a/src/v8-counters.h |
+++ b/src/v8-counters.h |
@@ -336,6 +336,14 @@ class Counters { |
FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC) |
#undef SC |
+#define SC(name) \ |
+ StatsCounter* count_of_CODE_AGE_##name() \ |
+ { return &count_of_CODE_AGE_##name##_; } \ |
+ StatsCounter* size_of_CODE_AGE_##name() \ |
+ { return &size_of_CODE_AGE_##name##_; } |
+ CODE_AGE_LIST_WITH_NO_AGE(SC) |
+#undef SC |
+ |
enum Id { |
#define RATE_ID(name, caption) k_##name, |
HISTOGRAM_TIMER_LIST(RATE_ID) |
@@ -361,6 +369,10 @@ class Counters { |
kSizeOfFIXED_ARRAY__##name, |
FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(COUNTER_ID) |
#undef COUNTER_ID |
+#define COUNTER_ID(name) kCountOfCODE_AGE__##name, \ |
+ kSizeOfCODE_AGE__##name, |
+ CODE_AGE_LIST_WITH_NO_AGE(COUNTER_ID) |
+#undef COUNTER_ID |
stats_counter_count |
}; |
@@ -406,6 +418,12 @@ class Counters { |
FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC) |
#undef SC |
+#define SC(name) \ |
+ StatsCounter size_of_CODE_AGE_##name##_; \ |
+ StatsCounter count_of_CODE_AGE_##name##_; |
+ CODE_AGE_LIST_WITH_NO_AGE(SC) |
+#undef SC |
+ |
friend class Isolate; |
explicit Counters(Isolate* isolate); |