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

Unified Diff: runtime/vm/heap.cc

Issue 215893006: Extend Timer to track longest contiguous interval, and add GC timer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « no previous file | runtime/vm/timer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.cc
===================================================================
--- runtime/vm/heap.cc (revision 34675)
+++ runtime/vm/heap.cc (working copy)
@@ -205,6 +205,7 @@
void Heap::CollectGarbage(Space space, ApiCallbacks api_callbacks) {
Isolate* isolate = Isolate::Current();
+ TIMERSCOPE(isolate, time_gc);
bool invoke_api_callbacks = (api_callbacks == kInvokeApiCallbacks);
switch (space) {
case kNew: {
@@ -261,6 +262,7 @@
void Heap::CollectAllGarbage() {
Isolate* isolate = Isolate::Current();
+ TIMERSCOPE(isolate, time_gc);
{
VMTagScope tagScope(isolate, VMTag::kGCNewSpaceTagId);
RecordBeforeGC(kNew, kFull);
« no previous file with comments | « no previous file | runtime/vm/timer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698