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

Unified Diff: src/incremental-marking.cc

Issue 8055029: Add experimental support for tracing the state of the VM heap to a file Base URL: http://v8.googlecode.com/svn/branches/experimental/heap-visualization/
Patch Set: Created 9 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/heap.cc ('k') | src/mark-compact.cc » ('j') | src/spaces.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/incremental-marking.cc
===================================================================
--- src/incremental-marking.cc (revision 9457)
+++ src/incremental-marking.cc (working copy)
@@ -686,11 +686,13 @@
}
if (state_ == SWEEPING) {
+ heap_->VisualizerTimeStamp(HeapVisualizer::kSweeping);
if (heap_->old_pointer_space()->AdvanceSweeper(bytes_to_process) &&
heap_->old_data_space()->AdvanceSweeper(bytes_to_process)) {
StartMarking();
}
} else if (state_ == MARKING) {
+ heap_->VisualizerTimeStamp(HeapVisualizer::kMarking);
Map* filler_map = heap_->one_pointer_filler_map();
Map* global_context_map = heap_->global_context_map();
IncrementalMarkingMarkingVisitor marking_visitor(heap_, this);
@@ -778,6 +780,7 @@
steps_took_ += delta;
steps_took_since_last_gc_ += delta;
}
+ heap_->VisualizerTimeStamp(HeapVisualizer::kRunning);
}
« no previous file with comments | « src/heap.cc ('k') | src/mark-compact.cc » ('j') | src/spaces.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698