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

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

Issue 2442693002: [heap] Account mark-compact prologue and epilogue in GC tracer. (Closed)
Patch Set: Created 4 years, 2 months 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
« no previous file with comments | « src/heap/gc-tracer.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 "clear.code_flush=%.1f " 517 "clear.code_flush=%.1f "
518 "clear.dependent_code=%.1f " 518 "clear.dependent_code=%.1f "
519 "clear.global_handles=%.1f " 519 "clear.global_handles=%.1f "
520 "clear.maps=%.1f " 520 "clear.maps=%.1f "
521 "clear.slots_buffer=%.1f " 521 "clear.slots_buffer=%.1f "
522 "clear.store_buffer=%.1f " 522 "clear.store_buffer=%.1f "
523 "clear.string_table=%.1f " 523 "clear.string_table=%.1f "
524 "clear.weak_cells=%.1f " 524 "clear.weak_cells=%.1f "
525 "clear.weak_collections=%.1f " 525 "clear.weak_collections=%.1f "
526 "clear.weak_lists=%.1f " 526 "clear.weak_lists=%.1f "
527 "epilogue=%.1f "
527 "evacuate=%.1f " 528 "evacuate=%.1f "
528 "evacuate.candidates=%.1f " 529 "evacuate.candidates=%.1f "
529 "evacuate.clean_up=%.1f " 530 "evacuate.clean_up=%.1f "
530 "evacuate.copy=%.1f " 531 "evacuate.copy=%.1f "
531 "evacuate.update_pointers=%.1f " 532 "evacuate.update_pointers=%.1f "
532 "evacuate.update_pointers.to_evacuated=%.1f " 533 "evacuate.update_pointers.to_evacuated=%.1f "
533 "evacuate.update_pointers.to_new=%.1f " 534 "evacuate.update_pointers.to_new=%.1f "
534 "evacuate.update_pointers.weak=%.1f " 535 "evacuate.update_pointers.weak=%.1f "
535 "external.mc_prologue=%.1f " 536 "external.mc_prologue=%.1f "
536 "external.mc_epilogue=%.1f " 537 "external.mc_epilogue=%.1f "
537 "external.weak_global_handles=%.1f " 538 "external.weak_global_handles=%.1f "
538 "finish=%.1f " 539 "finish=%.1f "
539 "mark=%.1f " 540 "mark=%.1f "
540 "mark.finish_incremental=%.1f " 541 "mark.finish_incremental=%.1f "
541 "mark.object_grouping=%.1f " 542 "mark.object_grouping=%.1f "
542 "mark.prepare_code_flush=%.1f " 543 "mark.prepare_code_flush=%.1f "
543 "mark.roots=%.1f " 544 "mark.roots=%.1f "
544 "mark.weak_closure=%.1f " 545 "mark.weak_closure=%.1f "
545 "mark.weak_closure.ephemeral=%.1f " 546 "mark.weak_closure.ephemeral=%.1f "
546 "mark.weak_closure.weak_handles=%.1f " 547 "mark.weak_closure.weak_handles=%.1f "
547 "mark.weak_closure.weak_roots=%.1f " 548 "mark.weak_closure.weak_roots=%.1f "
548 "mark.weak_closure.harmony=%.1f " 549 "mark.weak_closure.harmony=%.1f "
549 "mark.wrapper_prologue=%.1f " 550 "mark.wrapper_prologue=%.1f "
550 "mark.wrapper_epilogue=%.1f " 551 "mark.wrapper_epilogue=%.1f "
551 "mark.wrapper_tracing=%.1f " 552 "mark.wrapper_tracing=%.1f "
553 "prologue=%.1f "
552 "sweep=%.1f " 554 "sweep=%.1f "
553 "sweep.code=%.1f " 555 "sweep.code=%.1f "
554 "sweep.map=%.1f " 556 "sweep.map=%.1f "
555 "sweep.old=%.1f " 557 "sweep.old=%.1f "
556 "incremental=%.1f " 558 "incremental=%.1f "
557 "incremental.finalize=%.1f " 559 "incremental.finalize=%.1f "
558 "incremental.finalize.body=%.1f " 560 "incremental.finalize.body=%.1f "
559 "incremental.finalize.external.prologue=%.1f " 561 "incremental.finalize.external.prologue=%.1f "
560 "incremental.finalize.external.epilogue=%.1f " 562 "incremental.finalize.external.epilogue=%.1f "
561 "incremental.finalize.object_grouping=%.1f " 563 "incremental.finalize.object_grouping=%.1f "
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 current_.scopes[Scope::MC_CLEAR_CODE_FLUSH], 600 current_.scopes[Scope::MC_CLEAR_CODE_FLUSH],
599 current_.scopes[Scope::MC_CLEAR_DEPENDENT_CODE], 601 current_.scopes[Scope::MC_CLEAR_DEPENDENT_CODE],
600 current_.scopes[Scope::MC_CLEAR_GLOBAL_HANDLES], 602 current_.scopes[Scope::MC_CLEAR_GLOBAL_HANDLES],
601 current_.scopes[Scope::MC_CLEAR_MAPS], 603 current_.scopes[Scope::MC_CLEAR_MAPS],
602 current_.scopes[Scope::MC_CLEAR_SLOTS_BUFFER], 604 current_.scopes[Scope::MC_CLEAR_SLOTS_BUFFER],
603 current_.scopes[Scope::MC_CLEAR_STORE_BUFFER], 605 current_.scopes[Scope::MC_CLEAR_STORE_BUFFER],
604 current_.scopes[Scope::MC_CLEAR_STRING_TABLE], 606 current_.scopes[Scope::MC_CLEAR_STRING_TABLE],
605 current_.scopes[Scope::MC_CLEAR_WEAK_CELLS], 607 current_.scopes[Scope::MC_CLEAR_WEAK_CELLS],
606 current_.scopes[Scope::MC_CLEAR_WEAK_COLLECTIONS], 608 current_.scopes[Scope::MC_CLEAR_WEAK_COLLECTIONS],
607 current_.scopes[Scope::MC_CLEAR_WEAK_LISTS], 609 current_.scopes[Scope::MC_CLEAR_WEAK_LISTS],
610 current_.scopes[Scope::MC_EPILOGUE],
608 current_.scopes[Scope::MC_EVACUATE], 611 current_.scopes[Scope::MC_EVACUATE],
609 current_.scopes[Scope::MC_EVACUATE_CANDIDATES], 612 current_.scopes[Scope::MC_EVACUATE_CANDIDATES],
610 current_.scopes[Scope::MC_EVACUATE_CLEAN_UP], 613 current_.scopes[Scope::MC_EVACUATE_CLEAN_UP],
611 current_.scopes[Scope::MC_EVACUATE_COPY], 614 current_.scopes[Scope::MC_EVACUATE_COPY],
612 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS], 615 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS],
613 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_TO_EVACUATED], 616 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_TO_EVACUATED],
614 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_TO_NEW], 617 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_TO_NEW],
615 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_WEAK], 618 current_.scopes[Scope::MC_EVACUATE_UPDATE_POINTERS_WEAK],
616 current_.scopes[Scope::MC_EXTERNAL_PROLOGUE], 619 current_.scopes[Scope::MC_EXTERNAL_PROLOGUE],
617 current_.scopes[Scope::MC_EXTERNAL_EPILOGUE], 620 current_.scopes[Scope::MC_EXTERNAL_EPILOGUE],
618 current_.scopes[Scope::EXTERNAL_WEAK_GLOBAL_HANDLES], 621 current_.scopes[Scope::EXTERNAL_WEAK_GLOBAL_HANDLES],
619 current_.scopes[Scope::MC_FINISH], current_.scopes[Scope::MC_MARK], 622 current_.scopes[Scope::MC_FINISH], current_.scopes[Scope::MC_MARK],
620 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL], 623 current_.scopes[Scope::MC_MARK_FINISH_INCREMENTAL],
621 current_.scopes[Scope::MC_MARK_OBJECT_GROUPING], 624 current_.scopes[Scope::MC_MARK_OBJECT_GROUPING],
622 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH], 625 current_.scopes[Scope::MC_MARK_PREPARE_CODE_FLUSH],
623 current_.scopes[Scope::MC_MARK_ROOTS], 626 current_.scopes[Scope::MC_MARK_ROOTS],
624 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE], 627 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE],
625 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE_EPHEMERAL], 628 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE_EPHEMERAL],
626 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE_WEAK_HANDLES], 629 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE_WEAK_HANDLES],
627 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE_WEAK_ROOTS], 630 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE_WEAK_ROOTS],
628 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE_HARMONY], 631 current_.scopes[Scope::MC_MARK_WEAK_CLOSURE_HARMONY],
629 current_.scopes[Scope::MC_MARK_WRAPPER_PROLOGUE], 632 current_.scopes[Scope::MC_MARK_WRAPPER_PROLOGUE],
630 current_.scopes[Scope::MC_MARK_WRAPPER_EPILOGUE], 633 current_.scopes[Scope::MC_MARK_WRAPPER_EPILOGUE],
631 current_.scopes[Scope::MC_MARK_WRAPPER_TRACING], 634 current_.scopes[Scope::MC_MARK_WRAPPER_TRACING],
632 current_.scopes[Scope::MC_SWEEP], 635 current_.scopes[Scope::MC_PROLOGUE], current_.scopes[Scope::MC_SWEEP],
633 current_.scopes[Scope::MC_SWEEP_CODE], 636 current_.scopes[Scope::MC_SWEEP_CODE],
634 current_.scopes[Scope::MC_SWEEP_MAP], 637 current_.scopes[Scope::MC_SWEEP_MAP],
635 current_.scopes[Scope::MC_SWEEP_OLD], 638 current_.scopes[Scope::MC_SWEEP_OLD],
636 current_.scopes[Scope::MC_INCREMENTAL], 639 current_.scopes[Scope::MC_INCREMENTAL],
637 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE], 640 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE],
638 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE_BODY], 641 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE_BODY],
639 current_.scopes[Scope::MC_INCREMENTAL_EXTERNAL_PROLOGUE], 642 current_.scopes[Scope::MC_INCREMENTAL_EXTERNAL_PROLOGUE],
640 current_.scopes[Scope::MC_INCREMENTAL_EXTERNAL_EPILOGUE], 643 current_.scopes[Scope::MC_INCREMENTAL_EXTERNAL_EPILOGUE],
641 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE_OBJECT_GROUPING], 644 current_.scopes[Scope::MC_INCREMENTAL_FINALIZE_OBJECT_GROUPING],
642 current_.scopes[Scope::MC_INCREMENTAL_SWEEPING], 645 current_.scopes[Scope::MC_INCREMENTAL_SWEEPING],
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 } 818 }
816 819
817 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); } 820 void GCTracer::ResetSurvivalEvents() { recorded_survival_ratios_.Reset(); }
818 821
819 void GCTracer::NotifyIncrementalMarkingStart() { 822 void GCTracer::NotifyIncrementalMarkingStart() {
820 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs(); 823 incremental_marking_start_time_ = heap_->MonotonicallyIncreasingTimeInMs();
821 } 824 }
822 825
823 } // namespace internal 826 } // namespace internal
824 } // namespace v8 827 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/gc-tracer.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698