Index: src/v8-counters.cc |
diff --git a/src/v8-counters.cc b/src/v8-counters.cc |
index 8d490bec4beb37543a80c20f0a7f09e5e81af586..f17aacc21a264a2dbb38117486b747cbd816286a 100644 |
--- a/src/v8-counters.cc |
+++ b/src/v8-counters.cc |
@@ -61,6 +61,16 @@ Counters::Counters() { |
INSTANCE_TYPE_LIST(SC) |
#undef SC |
+#define SC(name) \ |
+ StatsCounter count_of_CODE_TYPE_##name = { \ |
+ "c:" "V8.CountOf_CODE_TYPE-" #name, NULL, false }; \ |
+ count_of_CODE_TYPE_##name##_ = count_of_CODE_TYPE_##name; \ |
+ StatsCounter size_of_CODE_TYPE_##name = { \ |
+ "c:" "V8.SizeOf_CODE_TYPE-" #name, NULL, false }; \ |
+ size_of_CODE_TYPE_##name##_ = size_of_CODE_TYPE_##name; |
+ CODE_KIND_LIST(SC) |
+#undef SC |
+ |
StatsCounter state_counters[] = { |
#define COUNTER_NAME(name) \ |
{ "c:V8.State" #name, NULL, false }, |