Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Unified Diff: src/counters.h

Issue 2329053002: Add delegating initialize method for RuntimeCallTimerScope. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/counters-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
};
« no previous file with comments | « no previous file | src/counters-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698