Index: src/counters.cc |
diff --git a/src/counters.cc b/src/counters.cc |
index 197a2ee143173bc8f6039db4bc68fa668a936c26..0dd62a0c5b96d9fd0009b9b83f49b6b4cad93216 100644 |
--- a/src/counters.cc |
+++ b/src/counters.cc |
@@ -312,6 +312,10 @@ void RuntimeCallStats::Print(std::ostream& os) { |
BUILTIN_LIST_C(PRINT_COUNTER) |
#undef PRINT_COUNTER |
+#define PRINT_COUNTER(name) entries.Add(&this->API_##name); |
+ FOR_EACH_API_COUNTER(PRINT_COUNTER) |
+#undef PRINT_COUNTER |
+ |
#define PRINT_COUNTER(name) entries.Add(&this->Handler_##name); |
FOR_EACH_HANDLER_COUNTER(PRINT_COUNTER) |
#undef PRINT_COUNTER |
@@ -321,15 +325,25 @@ void RuntimeCallStats::Print(std::ostream& os) { |
void RuntimeCallStats::Reset() { |
if (!FLAG_runtime_call_stats) return; |
-#define RESET_COUNTER(name, nargs, ressize) this->Runtime_##name.Reset(); |
+#define RESET_COUNTER(name) this->name.Reset(); |
+ FOR_EACH_MANUAL_COUNTER(RESET_COUNTER) |
+#undef RESET_COUNTER |
+ |
+#define RESET_COUNTER(name, nargs, result_size) this->Runtime_##name.Reset(); |
FOR_EACH_INTRINSIC(RESET_COUNTER) |
#undef RESET_COUNTER |
+ |
#define RESET_COUNTER(name, type) this->Builtin_##name.Reset(); |
BUILTIN_LIST_C(RESET_COUNTER) |
#undef RESET_COUNTER |
- this->ExternalCallback.Reset(); |
- this->GC.Reset(); |
- this->UnexpectedStubMiss.Reset(); |
+ |
+#define RESET_COUNTER(name) this->API_##name.Reset(); |
+ FOR_EACH_API_COUNTER(RESET_COUNTER) |
+#undef RESET_COUNTER |
+ |
+#define RESET_COUNTER(name) this->Handler_##name.Reset(); |
+ FOR_EACH_HANDLER_COUNTER(RESET_COUNTER) |
+#undef RESET_COUNTER |
} |
} // namespace internal |