Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: src/heap/gc-tracer.cc

Issue 2504993002: [heap] Minor MC: Add evacuation phase (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "src/counters.h" 7 #include "src/counters.h"
8 #include "src/heap/heap-inl.h" 8 #include "src/heap/heap-inl.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 10
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 ContextDisposalRateInMilliseconds()); 505 ContextDisposalRateInMilliseconds());
506 break; 506 break;
507 case Event::MINOR_MARK_COMPACTOR: 507 case Event::MINOR_MARK_COMPACTOR:
508 heap_->isolate()->PrintWithTimestamp( 508 heap_->isolate()->PrintWithTimestamp(
509 "pause=%.1f " 509 "pause=%.1f "
510 "mutator=%.1f " 510 "mutator=%.1f "
511 "gc=%s " 511 "gc=%s "
512 "reduce_memory=%d " 512 "reduce_memory=%d "
513 "mark=%.2f " 513 "mark=%.2f "
514 "mark.roots=%.2f " 514 "mark.roots=%.2f "
515 "mark.old_to_new=%.2f\n", 515 "mark.old_to_new=%.2f "
516 "evacuate=%.2f "
517 "evacuate.copy=%.2f "
518 "evacuate.update_pointers=%.2f\n",
516 duration, spent_in_mutator, "mmc", current_.reduce_memory, 519 duration, spent_in_mutator, "mmc", current_.reduce_memory,
517 current_.scopes[Scope::MINOR_MC_MARK], 520 current_.scopes[Scope::MINOR_MC_MARK],
518 current_.scopes[Scope::MINOR_MC_MARK_ROOTS], 521 current_.scopes[Scope::MINOR_MC_MARK_ROOTS],
519 current_.scopes[Scope::MINOR_MC_MARK_OLD_TO_NEW_POINTERS]); 522 current_.scopes[Scope::MINOR_MC_MARK_OLD_TO_NEW_POINTERS],
523 current_.scopes[Scope::MC_EVACUATE],
524 current_.scopes[Scope::MC_EVACUATE_COPY],
525 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS]);
520 break; 526 break;
521 case Event::MARK_COMPACTOR: 527 case Event::MARK_COMPACTOR:
522 case Event::INCREMENTAL_MARK_COMPACTOR: 528 case Event::INCREMENTAL_MARK_COMPACTOR:
523 heap_->isolate()->PrintWithTimestamp( 529 heap_->isolate()->PrintWithTimestamp(
524 "pause=%.1f " 530 "pause=%.1f "
525 "mutator=%.1f " 531 "mutator=%.1f "
526 "gc=%s " 532 "gc=%s "
527 "reduce_memory=%d " 533 "reduce_memory=%d "
528 "clear=%1.f " 534 "clear=%1.f "
529 "clear.code_flush=%.1f " 535 "clear.code_flush=%.1f "
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 } 836 }
831 837
832 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } 838 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); }
833 839
834 void GCTracer::NotifyIncrementalMarkingStart() { 840 void GCTracer::NotifyIncrementalMarkingStart() {
835 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); 841 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs();
836 } 842 }
837 843
838 } // namespace internal 844 } // namespace internal
839 } // namespace v8 845 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/gc-tracer.h ('k') | src/heap/heap.h » ('j') | src/heap/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698