Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index 068c44e713f5569515606e2b582caee994ea17f1..d6f77561ffa8a9187c4cf287af8c3ab41bb462b9 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -561,6 +561,24 @@ class Heap { |
return NULL; |
} |
+ // TODO(hpayer): remove, should be handled by GCTracer |
Michael Starzinger
2013/01/29 12:13:47
Move all of these accessors down to where the othe
Hannes Payer (out of office)
2013/01/30 10:42:20
Done.
|
+ void AddMarkingTime(double marking_time) { |
+ marking_time_ += marking_time; |
+ } |
+ |
+ double marking_time() const { |
+ return marking_time_; |
+ } |
+ |
+ // TODO(hpayer): remove, should be handled by GCTracer |
+ void AddSweepingTime(double sweeping_time) { |
+ sweeping_time_ += sweeping_time; |
+ } |
+ |
+ double sweeping_time() const { |
+ return sweeping_time_; |
+ } |
+ |
bool always_allocate() { return always_allocate_scope_depth_ != 0; } |
Address always_allocate_scope_depth_address() { |
return reinterpret_cast<Address>(&always_allocate_scope_depth_); |
@@ -2022,7 +2040,6 @@ class Heap { |
GCTracer* tracer_; |
- |
// Allocates a small number to string cache. |
MUST_USE_RESULT MaybeObject* AllocateInitialNumberStringCache(); |
// Creates and installs the full-sized number string cache. |
@@ -2160,6 +2177,12 @@ class Heap { |
double last_gc_end_timestamp_; |
+ // GC time spent in marking |
Michael Starzinger
2013/01/29 12:13:47
s/GC time/Cumulative GC time/
Hannes Payer (out of office)
2013/01/30 10:42:20
Done.
|
+ double marking_time_; |
+ |
+ // GC time spent in sweeping |
Michael Starzinger
2013/01/29 12:13:47
Likewise.
Hannes Payer (out of office)
2013/01/30 10:42:20
Done.
|
+ double sweeping_time_; |
+ |
MarkCompactCollector mark_compact_collector_; |
StoreBuffer store_buffer_; |