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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/heap/gc-tracer.h" | 7 #include "src/heap/gc-tracer.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 current_.scopes[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]); | 343 current_.scopes[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]); |
344 PrintF("old_new=%.1f ", | 344 PrintF("old_new=%.1f ", |
345 current_.scopes[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]); | 345 current_.scopes[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]); |
346 PrintF("compaction_ptrs=%.1f ", | 346 PrintF("compaction_ptrs=%.1f ", |
347 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]); | 347 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]); |
348 PrintF("intracompaction_ptrs=%.1f ", | 348 PrintF("intracompaction_ptrs=%.1f ", |
349 current_.scopes[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]); | 349 current_.scopes[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]); |
350 PrintF("misc_compaction=%.1f ", | 350 PrintF("misc_compaction=%.1f ", |
351 current_.scopes[Scope::MC_UPDATE_MISC_POINTERS]); | 351 current_.scopes[Scope::MC_UPDATE_MISC_POINTERS]); |
352 PrintF("weak_closure=%.1f ", current_.scopes[Scope::MC_WEAKCLOSURE]); | 352 PrintF("weak_closure=%.1f ", current_.scopes[Scope::MC_WEAKCLOSURE]); |
| 353 PrintF("inc_weak_closure=%.1f ", |
| 354 current_.scopes[Scope::MC_INCREMENTAL_WEAKCLOSURE]); |
353 PrintF("weakcollection_process=%.1f ", | 355 PrintF("weakcollection_process=%.1f ", |
354 current_.scopes[Scope::MC_WEAKCOLLECTION_PROCESS]); | 356 current_.scopes[Scope::MC_WEAKCOLLECTION_PROCESS]); |
355 PrintF("weakcollection_clear=%.1f ", | 357 PrintF("weakcollection_clear=%.1f ", |
356 current_.scopes[Scope::MC_WEAKCOLLECTION_CLEAR]); | 358 current_.scopes[Scope::MC_WEAKCOLLECTION_CLEAR]); |
357 PrintF("weakcollection_abort=%.1f ", | 359 PrintF("weakcollection_abort=%.1f ", |
358 current_.scopes[Scope::MC_WEAKCOLLECTION_ABORT]); | 360 current_.scopes[Scope::MC_WEAKCOLLECTION_ABORT]); |
359 | 361 |
360 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", current_.start_object_size); | 362 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", current_.start_object_size); |
361 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", current_.end_object_size); | 363 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", current_.end_object_size); |
362 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ", current_.start_holes_size); | 364 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ", current_.start_holes_size); |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 | 587 |
586 | 588 |
587 bool GCTracer::SurvivalEventsRecorded() const { | 589 bool GCTracer::SurvivalEventsRecorded() const { |
588 return promotion_events_.size() > 0; | 590 return promotion_events_.size() > 0; |
589 } | 591 } |
590 | 592 |
591 | 593 |
592 void GCTracer::ResetSurvivalEvents() { promotion_events_.reset(); } | 594 void GCTracer::ResetSurvivalEvents() { promotion_events_.reset(); } |
593 } | 595 } |
594 } // namespace v8::internal | 596 } // namespace v8::internal |
OLD | NEW |