Index: src/v8-counters.h |
diff --git a/src/v8-counters.h b/src/v8-counters.h |
index e0e05c9a071024e29a34a9a4e10b6709670cddc2..cb789afe1a960d86e198852177ec8dc232dcf574 100644 |
--- a/src/v8-counters.h |
+++ b/src/v8-counters.h |
@@ -315,6 +315,14 @@ class Counters { |
INSTANCE_TYPE_LIST(SC) |
#undef SC |
+#define SC(name) \ |
+ StatsCounter* count_of_CODE_TYPE_##name() \ |
+ { return &count_of_CODE_TYPE_##name##_; } \ |
+ StatsCounter* size_of_CODE_TYPE_##name() \ |
+ { return &size_of_CODE_TYPE_##name##_; } |
+ CODE_KIND_LIST(SC) |
+#undef SC |
+ |
enum Id { |
#define RATE_ID(name, caption) k_##name, |
HISTOGRAM_TIMER_LIST(RATE_ID) |
@@ -329,6 +337,10 @@ class Counters { |
#define COUNTER_ID(name) kCountOf##name, kSizeOf##name, |
INSTANCE_TYPE_LIST(COUNTER_ID) |
#undef COUNTER_ID |
+#define COUNTER_ID(name) kCountOfCODE_TYPE_##name, \ |
+ kSizeOfCODE_TYPE_##name, |
+ CODE_KIND_LIST(COUNTER_ID) |
+#undef COUNTER_ID |
#define COUNTER_ID(name) k_##name, |
STATE_TAG_LIST(COUNTER_ID) |
#undef COUNTER_ID |
@@ -362,6 +374,12 @@ class Counters { |
INSTANCE_TYPE_LIST(SC) |
#undef SC |
+#define SC(name) \ |
+ StatsCounter size_of_CODE_TYPE_##name##_; \ |
+ StatsCounter count_of_CODE_TYPE_##name##_; |
+ CODE_KIND_LIST(SC) |
+#undef SC |
+ |
enum { |
#define COUNTER_ID(name) __##name, |
STATE_TAG_LIST(COUNTER_ID) |