Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index c5af4d02e2fa3a05c9d9d03701462fc023e9f2bd..38766ea8a5ecd970dd49b1b7d4d464393bb2aa3f 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -2557,6 +2557,18 @@ class GCTracer BASE_EMBEDDED { |
promoted_objects_size_ += object_size; |
} |
+ void increment_died_nodes_in_new_space() { |
+ died_nodes_in_new_space_++; |
+ } |
+ |
+ void increment_copied_nodes_in_new_space() { |
+ copied_nodes_in_new_space_++; |
+ } |
+ |
+ void increment_promoted_nodes() { |
+ promoted_nodes_++; |
+ } |
+ |
private: |
// Returns a string matching the collector. |
const char* CollectorString(); |
@@ -2601,6 +2613,15 @@ class GCTracer BASE_EMBEDDED { |
// Size of objects promoted during the current collection. |
intptr_t promoted_objects_size_; |
+ // Number of died nodes in the new space. |
+ int died_nodes_in_new_space_; |
Michael Starzinger
2012/12/05 14:26:14
Can we rename this to "nodes_died_in_new_space_" s
haraken
2012/12/06 11:08:15
Done.
|
+ |
+ // Number of copied nodes to the new space. |
+ int copied_nodes_in_new_space_; |
Michael Starzinger
2012/12/05 14:26:14
Likewise with "nodes_copied_in_new_space_".
haraken
2012/12/06 11:08:15
Done.
|
+ |
+ // Number of promoted nodes to the old space. |
+ int promoted_nodes_; |
Michael Starzinger
2012/12/05 14:26:14
Likewise with "nodes_promoted_"
haraken
2012/12/06 11:08:15
Done.
|
+ |
// Incremental marking steps counters. |
int steps_count_; |
double steps_took_; |