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

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

Issue 1269753002: GC: Add tracing event for rescanning large objects on newspace evacuation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment Created 5 years, 4 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/mark-compact.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/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
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
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
OLDNEW
« no previous file with comments | « src/heap/gc-tracer.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698