Index: src/counters.h |
diff --git a/src/counters.h b/src/counters.h |
index f57204ac711ffcd03e939158f07cc78d1cc62936..bbc92881723db6942402090d5a95818765b1d76b 100644 |
--- a/src/counters.h |
+++ b/src/counters.h |
@@ -1257,6 +1257,13 @@ class RuntimeCallTimerScope { |
} |
private: |
+ V8_INLINE void Initialize(Isolate* isolate, |
+ RuntimeCallStats::CounterId counter_id) { |
+ isolate_ = isolate; |
+ RuntimeCallStats::Enter(isolate_->counters()->runtime_call_stats(), &timer_, |
+ counter_id); |
+ } |
+ |
Isolate* isolate_ = nullptr; |
RuntimeCallTimer timer_; |
}; |