Index: src/counters.cc |
diff --git a/src/counters.cc b/src/counters.cc |
index 57dad3db1d9a22409a163d3218794b384180a044..797630833a35025aa7e64de22fc04045f71b64b3 100644 |
--- a/src/counters.cc |
+++ b/src/counters.cc |
@@ -212,7 +212,10 @@ class RuntimeCallStatEntries { |
Entry("Total", total_time, total_call_count).Print(os); |
} |
- void Add(RuntimeCallCounter* counter) { |
+ // By default, the compiler will usually inline this, which results in a large |
+ // binary size increase: std::vector::push_back expands to a large amount of |
+ // instructions, and this function is invoked repeatedly by macros. |
+ V8_NOINLINE void Add(RuntimeCallCounter* counter) { |
if (counter->count == 0) return; |
entries.push_back(Entry(counter->name, counter->time, counter->count)); |
total_time += counter->time; |