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 #ifndef V8_HEAP_GC_TRACER_H_ | 5 #ifndef V8_HEAP_GC_TRACER_H_ |
6 #define V8_HEAP_GC_TRACER_H_ | 6 #define V8_HEAP_GC_TRACER_H_ |
7 | 7 |
8 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 | 10 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 const char* gc_reason; | 212 const char* gc_reason; |
213 const char* collector_reason; | 213 const char* collector_reason; |
214 | 214 |
215 // Timestamp set in the constructor. | 215 // Timestamp set in the constructor. |
216 double start_time; | 216 double start_time; |
217 | 217 |
218 // Timestamp set in the destructor. | 218 // Timestamp set in the destructor. |
219 double end_time; | 219 double end_time; |
220 | 220 |
| 221 // Memory reduction flag set. |
| 222 bool reduce_memory; |
| 223 |
221 // Size of objects in heap set in constructor. | 224 // Size of objects in heap set in constructor. |
222 intptr_t start_object_size; | 225 intptr_t start_object_size; |
223 | 226 |
224 // Size of objects in heap set in destructor. | 227 // Size of objects in heap set in destructor. |
225 intptr_t end_object_size; | 228 intptr_t end_object_size; |
226 | 229 |
227 // Size of memory allocated from OS set in constructor. | 230 // Size of memory allocated from OS set in constructor. |
228 intptr_t start_memory_size; | 231 intptr_t start_memory_size; |
229 | 232 |
230 // Size of memory allocated from OS set in destructor. | 233 // Size of memory allocated from OS set in destructor. |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 | 555 |
553 // Counts how many tracers were started without stopping. | 556 // Counts how many tracers were started without stopping. |
554 int start_counter_; | 557 int start_counter_; |
555 | 558 |
556 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 559 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
557 }; | 560 }; |
558 } // namespace internal | 561 } // namespace internal |
559 } // namespace v8 | 562 } // namespace v8 |
560 | 563 |
561 #endif // V8_HEAP_GC_TRACER_H_ | 564 #endif // V8_HEAP_GC_TRACER_H_ |
OLD | NEW |