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

Unified Diff: src/heap.cc

Issue 11365146: Add GCTracer metrics for a scavenger GC for DOM wrappers (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 8 years, 1 month 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.h ('K') | « src/heap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index ae58be32a1f44cb712333a6276e091e700bb21ad..bb2a612a3f3740b85c2f7cea8802a0404f4beef4 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -961,7 +961,8 @@ bool Heap::PerformGarbageCollection(GarbageCollector collector,
{ DisableAssertNoAllocation allow_allocation;
GCTracer::Scope scope(tracer, GCTracer::Scope::EXTERNAL);
next_gc_likely_to_collect_more =
- isolate_->global_handles()->PostGarbageCollectionProcessing(collector);
+ isolate_->global_handles()->PostGarbageCollectionProcessing(
+ collector, tracer);
}
gc_post_processing_depth_--;
@@ -7052,6 +7053,9 @@ GCTracer::GCTracer(Heap* heap,
allocated_since_last_gc_(0),
spent_in_mutator_(0),
promoted_objects_size_(0),
+ died_nodes_in_new_space_(0),
+ copied_nodes_in_new_space_(0),
+ promoted_nodes_(0),
heap_(heap),
gc_reason_(gc_reason),
collector_reason_(collector_reason) {
@@ -7192,6 +7196,9 @@ GCTracer::~GCTracer() {
PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc_);
PrintF("promoted=%" V8_PTR_PREFIX "d ", promoted_objects_size_);
+ PrintF("died_nodes_in_new=%" V8_PTR_PREFIX "d ", died_nodes_in_new_space_);
+ PrintF("copied_nodes_in_new=%" V8_PTR_PREFIX "d ", copied_nodes_in_new_space_);
Michael Starzinger 2012/12/05 14:26:14 More than 80 characters.
haraken 2012/12/06 11:08:15 Done.
+ PrintF("promoted_nodes=%" V8_PTR_PREFIX "d ", promoted_nodes_);
if (collector_ == SCAVENGER) {
PrintF("stepscount=%d ", steps_count_since_last_gc_);
« src/heap.h ('K') | « src/heap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698