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

Unified Diff: src/counters-inl.h

Issue 2296243002: [RuntimeCallStats] Move tracing runtime instrumentation closer to the original version. (Closed)
Patch Set: Rebase 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 | « src/counters.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/counters-inl.h
diff --git a/src/counters-inl.h b/src/counters-inl.h
index c8c06d295041ba83cde4925a312d8384b76e082a..44424d3ba458ec9abc0c61ccb8e598c8febecfe7 100644
--- a/src/counters-inl.h
+++ b/src/counters-inl.h
@@ -14,8 +14,10 @@ RuntimeCallTimerScope::RuntimeCallTimerScope(
HeapObject* heap_object, RuntimeCallStats::CounterId counter_id) {
if (V8_UNLIKELY(FLAG_runtime_call_stats)) {
isolate_ = heap_object->GetIsolate();
- RuntimeCallStats::Enter(isolate_, &timer_, counter_id);
+ RuntimeCallStats::Enter(isolate_->counters()->runtime_call_stats(), &timer_,
+ counter_id);
}
+ // TODO(lpy): Add a tracing equivalent for the runtime call stats.
}
} // namespace internal
« no previous file with comments | « src/counters.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698