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

Unified Diff: src/heap/heap.cc

Issue 1825093002: [counters] adding runtime call timers for GC (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adding gc timer Created 4 years, 9 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
« src/heap/gc-tracer.h ('K') | « src/heap/gc-tracer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index e9b67efbbc230724a16751e8baaeadd877c845fc..7bf65a45760d268421051b5af50baecd15a07752 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -1009,6 +1009,8 @@ bool Heap::CollectGarbage(GarbageCollector collector, const char* gc_reason,
HistogramTimer* gc_type_timer = GCTypeTimer(collector);
HistogramTimerScope histogram_timer_scope(gc_type_timer);
TRACE_EVENT0("v8", gc_type_timer->name());
+ RuntimeCallTimerScope timer(
ulan 2016/03/23 13:59:56 Please move this to GcTracer::Start / Stop similar
+ isolate(), &isolate()->counters()->runtime_call_stats()->GC);
next_gc_likely_to_collect_more =
PerformGarbageCollection(collector, gc_callback_flags);
« src/heap/gc-tracer.h ('K') | « src/heap/gc-tracer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698