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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 case Event::MARK_COMPACTOR: | 419 case Event::MARK_COMPACTOR: |
420 case Event::INCREMENTAL_MARK_COMPACTOR: | 420 case Event::INCREMENTAL_MARK_COMPACTOR: |
421 PrintF("external=%.1f ", current_.scopes[Scope::EXTERNAL]); | 421 PrintF("external=%.1f ", current_.scopes[Scope::EXTERNAL]); |
422 PrintF("mark=%.1f ", current_.scopes[Scope::MC_MARK]); | 422 PrintF("mark=%.1f ", current_.scopes[Scope::MC_MARK]); |
423 PrintF("sweep=%.2f ", current_.scopes[Scope::MC_SWEEP]); | 423 PrintF("sweep=%.2f ", current_.scopes[Scope::MC_SWEEP]); |
424 PrintF("sweepns=%.2f ", current_.scopes[Scope::MC_SWEEP_NEWSPACE]); | 424 PrintF("sweepns=%.2f ", current_.scopes[Scope::MC_SWEEP_NEWSPACE]); |
425 PrintF("sweepos=%.2f ", current_.scopes[Scope::MC_SWEEP_OLDSPACE]); | 425 PrintF("sweepos=%.2f ", current_.scopes[Scope::MC_SWEEP_OLDSPACE]); |
426 PrintF("sweepcode=%.2f ", current_.scopes[Scope::MC_SWEEP_CODE]); | 426 PrintF("sweepcode=%.2f ", current_.scopes[Scope::MC_SWEEP_CODE]); |
427 PrintF("sweepcell=%.2f ", current_.scopes[Scope::MC_SWEEP_CELL]); | 427 PrintF("sweepcell=%.2f ", current_.scopes[Scope::MC_SWEEP_CELL]); |
428 PrintF("sweepmap=%.2f ", current_.scopes[Scope::MC_SWEEP_MAP]); | 428 PrintF("sweepmap=%.2f ", current_.scopes[Scope::MC_SWEEP_MAP]); |
| 429 PrintF("rescan_lo=%.2f ", |
| 430 current_.scopes[Scope::MC_RESCAN_LARGE_OBJECTS]); |
429 PrintF("evacuate=%.1f ", current_.scopes[Scope::MC_EVACUATE_PAGES]); | 431 PrintF("evacuate=%.1f ", current_.scopes[Scope::MC_EVACUATE_PAGES]); |
430 PrintF("new_new=%.1f ", | 432 PrintF("new_new=%.1f ", |
431 current_.scopes[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS]); | 433 current_.scopes[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS]); |
432 PrintF("root_new=%.1f ", | 434 PrintF("root_new=%.1f ", |
433 current_.scopes[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]); | 435 current_.scopes[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]); |
434 PrintF("old_new=%.1f ", | 436 PrintF("old_new=%.1f ", |
435 current_.scopes[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]); | 437 current_.scopes[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]); |
436 PrintF("compaction_ptrs=%.1f ", | 438 PrintF("compaction_ptrs=%.1f ", |
437 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]); | 439 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]); |
438 PrintF("intracompaction_ptrs=%.1f ", | 440 PrintF("intracompaction_ptrs=%.1f ", |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 | 741 |
740 | 742 |
741 bool GCTracer::SurvivalEventsRecorded() const { | 743 bool GCTracer::SurvivalEventsRecorded() const { |
742 return survival_events_.size() > 0; | 744 return survival_events_.size() > 0; |
743 } | 745 } |
744 | 746 |
745 | 747 |
746 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } | 748 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } |
747 } // namespace internal | 749 } // namespace internal |
748 } // namespace v8 | 750 } // namespace v8 |
OLD | NEW |