OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef V8_HEAP_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 2124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2135 | 2135 |
2136 // Total time spent in GC. | 2136 // Total time spent in GC. |
2137 double total_gc_time_ms_; | 2137 double total_gc_time_ms_; |
2138 | 2138 |
2139 // Maximum size of objects alive after GC. | 2139 // Maximum size of objects alive after GC. |
2140 intptr_t max_alive_after_gc_; | 2140 intptr_t max_alive_after_gc_; |
2141 | 2141 |
2142 // Minimal interval between two subsequent collections. | 2142 // Minimal interval between two subsequent collections. |
2143 double min_in_mutator_; | 2143 double min_in_mutator_; |
2144 | 2144 |
2145 // Cumulative GC time spent in marking | 2145 // Cumulative GC time spent in marking. |
2146 double marking_time_; | 2146 double marking_time_; |
2147 | 2147 |
2148 // Cumulative GC time spent in sweeping | 2148 // Cumulative GC time spent in sweeping. |
2149 double sweeping_time_; | 2149 double sweeping_time_; |
2150 | 2150 |
2151 // Last time an idle notification happened | 2151 // Last time an idle notification happened. |
2152 double last_idle_notification_time_; | 2152 double last_idle_notification_time_; |
2153 | 2153 |
| 2154 // Last time a garbage collection happened. |
| 2155 double last_gc_time_; |
| 2156 |
2154 MarkCompactCollector mark_compact_collector_; | 2157 MarkCompactCollector mark_compact_collector_; |
2155 | 2158 |
2156 StoreBuffer store_buffer_; | 2159 StoreBuffer store_buffer_; |
2157 | 2160 |
2158 Marking marking_; | 2161 Marking marking_; |
2159 | 2162 |
2160 IncrementalMarking incremental_marking_; | 2163 IncrementalMarking incremental_marking_; |
2161 | 2164 |
2162 GCIdleTimeHandler gc_idle_time_handler_; | 2165 GCIdleTimeHandler gc_idle_time_handler_; |
2163 | 2166 |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2659 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2662 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2660 | 2663 |
2661 private: | 2664 private: |
2662 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2665 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2663 }; | 2666 }; |
2664 #endif // DEBUG | 2667 #endif // DEBUG |
2665 } | 2668 } |
2666 } // namespace v8::internal | 2669 } // namespace v8::internal |
2667 | 2670 |
2668 #endif // V8_HEAP_HEAP_H_ | 2671 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |