OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/heap/gc-tracer.h" | 5 #include "src/heap/gc-tracer.h" |
6 | 6 |
7 #include "src/counters.h" | 7 #include "src/counters.h" |
8 #include "src/heap/heap-inl.h" | 8 #include "src/heap/heap-inl.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 | 10 |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 current_.incremental_marking_scopes[i] = incremental_marking_scopes_[i]; | 262 current_.incremental_marking_scopes[i] = incremental_marking_scopes_[i]; |
263 current_.scopes[i] = incremental_marking_scopes_[i].duration; | 263 current_.scopes[i] = incremental_marking_scopes_[i].duration; |
264 } | 264 } |
265 RecordIncrementalMarkingSpeed(current_.incremental_marking_bytes, | 265 RecordIncrementalMarkingSpeed(current_.incremental_marking_bytes, |
266 current_.incremental_marking_duration); | 266 current_.incremental_marking_duration); |
267 recorded_incremental_mark_compacts_.Push( | 267 recorded_incremental_mark_compacts_.Push( |
268 MakeBytesAndDuration(current_.start_object_size, duration)); | 268 MakeBytesAndDuration(current_.start_object_size, duration)); |
269 ResetIncrementalMarkingCounters(); | 269 ResetIncrementalMarkingCounters(); |
270 combined_mark_compact_speed_cache_ = 0.0; | 270 combined_mark_compact_speed_cache_ = 0.0; |
271 } else { | 271 } else { |
272 DCHECK_EQ(0, current_.incremental_marking_bytes); | 272 DCHECK_EQ(0u, current_.incremental_marking_bytes); |
273 DCHECK_EQ(0, current_.incremental_marking_duration); | 273 DCHECK_EQ(0, current_.incremental_marking_duration); |
274 recorded_mark_compacts_.Push( | 274 recorded_mark_compacts_.Push( |
275 MakeBytesAndDuration(current_.start_object_size, duration)); | 275 MakeBytesAndDuration(current_.start_object_size, duration)); |
276 ResetIncrementalMarkingCounters(); | 276 ResetIncrementalMarkingCounters(); |
277 combined_mark_compact_speed_cache_ = 0.0; | 277 combined_mark_compact_speed_cache_ = 0.0; |
278 } | 278 } |
279 | 279 |
280 heap_->UpdateTotalGCTime(duration); | 280 heap_->UpdateTotalGCTime(duration); |
281 | 281 |
282 if (current_.type == Event::SCAVENGER && FLAG_trace_gc_ignore_scavenger) | 282 if (current_.type == Event::SCAVENGER && FLAG_trace_gc_ignore_scavenger) |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 } | 812 } |
813 | 813 |
814 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } | 814 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } |
815 | 815 |
816 void GCTracer::NotifyIncrementalMarkingStart() { | 816 void GCTracer::NotifyIncrementalMarkingStart() { |
817 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); | 817 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); |
818 } | 818 } |
819 | 819 |
820 } // namespace internal | 820 } // namespace internal |
821 } // namespace v8 | 821 } // namespace v8 |
OLD | NEW |