Index: src/counters.cc |
diff --git a/src/counters.cc b/src/counters.cc |
index 7de25e98a3c10be9514de1ef484c1dbdc1f4c6e8..34e8467440554c5c9612b940657e9bb5f4cf9b12 100644 |
--- a/src/counters.cc |
+++ b/src/counters.cc |
@@ -109,6 +109,38 @@ Counters::Counters(Isolate* isolate) { |
} |
+void Counters::ResetCounters() { |
+#define SC(name, caption) name##_.Reset(); |
+ STATS_COUNTER_LIST_1(SC) |
+ STATS_COUNTER_LIST_2(SC) |
+#undef SC |
+ |
+#define SC(name) \ |
+ count_of_##name##_.Reset(); \ |
+ size_of_##name##_.Reset(); |
+ INSTANCE_TYPE_LIST(SC) |
+#undef SC |
+ |
+#define SC(name) \ |
+ count_of_CODE_TYPE_##name##_.Reset(); \ |
+ size_of_CODE_TYPE_##name##_.Reset(); |
+ CODE_KIND_LIST(SC) |
+#undef SC |
+ |
+#define SC(name) \ |
+ count_of_FIXED_ARRAY_##name##_.Reset(); \ |
+ size_of_FIXED_ARRAY_##name##_.Reset(); |
+ FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(SC) |
+#undef SC |
+ |
+#define SC(name) \ |
+ count_of_CODE_AGE_##name##_.Reset(); \ |
+ size_of_CODE_AGE_##name##_.Reset(); |
+ CODE_AGE_LIST_COMPLETE(SC) |
+#undef SC |
+} |
+ |
+ |
void Counters::ResetHistograms() { |
#define HT(name, caption) name##_.Reset(); |
HISTOGRAM_TIMER_LIST(HT) |