Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index 068c44e713f5569515606e2b582caee994ea17f1..d210bd1b9121fbd7a02dcf0734d270db836fc1c8 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -561,6 +561,22 @@ class Heap { |
return NULL; |
} |
+ void AddMarkingTime(double marking_time) { |
Michael Starzinger
2013/01/28 13:55:39
Drop these callbacks.
Hannes Payer (out of office)
2013/01/29 12:01:54
As discussed offline, I will mark them TODO remove
|
+ marking_time_ += marking_time; |
+ } |
+ |
+ double marking_time() const { |
+ return marking_time_; |
+ } |
+ |
+ 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,6 +2038,8 @@ class Heap { |
GCTracer* tracer_; |
+ double marking_time_; |
Michael Starzinger
2013/01/28 13:55:39
Move these counters into IncrementalMarking and th
Hannes Payer (out of office)
2013/01/29 12:01:54
As discussed offline, they stay in heap.h
On 2013
|
+ double sweeping_time_; |
// Allocates a small number to string cache. |
MUST_USE_RESULT MaybeObject* AllocateInitialNumberStringCache(); |