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 <cstdarg> |
| 8 |
7 #include "src/counters.h" | 9 #include "src/counters.h" |
8 #include "src/heap/heap-inl.h" | 10 #include "src/heap/heap-inl.h" |
9 #include "src/isolate.h" | 11 #include "src/isolate.h" |
10 | 12 |
11 namespace v8 { | 13 namespace v8 { |
12 namespace internal { | 14 namespace internal { |
13 | 15 |
14 static size_t CountTotalHolesSize(Heap* heap) { | 16 static size_t CountTotalHolesSize(Heap* heap) { |
15 size_t holes_size = 0; | 17 size_t holes_size = 0; |
16 OldSpaces spaces(heap); | 18 OldSpaces spaces(heap); |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 } | 853 } |
852 | 854 |
853 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } | 855 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } |
854 | 856 |
855 void GCTracer::NotifyIncrementalMarkingStart() { | 857 void GCTracer::NotifyIncrementalMarkingStart() { |
856 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); | 858 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); |
857 } | 859 } |
858 | 860 |
859 } // namespace internal | 861 } // namespace internal |
860 } // namespace v8 | 862 } // namespace v8 |
OLD | NEW |