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

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

Issue 1296713007: Record slots in large objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/incremental-marking.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.h" 8 #include "src/heap/heap.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! 10 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker!
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 case Event::MARK_COMPACTOR: 422 case Event::MARK_COMPACTOR:
423 case Event::INCREMENTAL_MARK_COMPACTOR: 423 case Event::INCREMENTAL_MARK_COMPACTOR:
424 PrintF("external=%.1f ", current_.scopes[Scope::EXTERNAL]); 424 PrintF("external=%.1f ", current_.scopes[Scope::EXTERNAL]);
425 PrintF("mark=%.1f ", current_.scopes[Scope::MC_MARK]); 425 PrintF("mark=%.1f ", current_.scopes[Scope::MC_MARK]);
426 PrintF("sweep=%.2f ", current_.scopes[Scope::MC_SWEEP]); 426 PrintF("sweep=%.2f ", current_.scopes[Scope::MC_SWEEP]);
427 PrintF("sweepns=%.2f ", current_.scopes[Scope::MC_SWEEP_NEWSPACE]); 427 PrintF("sweepns=%.2f ", current_.scopes[Scope::MC_SWEEP_NEWSPACE]);
428 PrintF("sweepos=%.2f ", current_.scopes[Scope::MC_SWEEP_OLDSPACE]); 428 PrintF("sweepos=%.2f ", current_.scopes[Scope::MC_SWEEP_OLDSPACE]);
429 PrintF("sweepcode=%.2f ", current_.scopes[Scope::MC_SWEEP_CODE]); 429 PrintF("sweepcode=%.2f ", current_.scopes[Scope::MC_SWEEP_CODE]);
430 PrintF("sweepcell=%.2f ", current_.scopes[Scope::MC_SWEEP_CELL]); 430 PrintF("sweepcell=%.2f ", current_.scopes[Scope::MC_SWEEP_CELL]);
431 PrintF("sweepmap=%.2f ", current_.scopes[Scope::MC_SWEEP_MAP]); 431 PrintF("sweepmap=%.2f ", current_.scopes[Scope::MC_SWEEP_MAP]);
432 PrintF("rescan_lo=%.2f ",
433 current_.scopes[Scope::MC_RESCAN_LARGE_OBJECTS]);
434 PrintF("evacuate=%.1f ", current_.scopes[Scope::MC_EVACUATE_PAGES]); 432 PrintF("evacuate=%.1f ", current_.scopes[Scope::MC_EVACUATE_PAGES]);
435 PrintF("new_new=%.1f ", 433 PrintF("new_new=%.1f ",
436 current_.scopes[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS]); 434 current_.scopes[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS]);
437 PrintF("root_new=%.1f ", 435 PrintF("root_new=%.1f ",
438 current_.scopes[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]); 436 current_.scopes[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]);
439 PrintF("old_new=%.1f ", 437 PrintF("old_new=%.1f ",
440 current_.scopes[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]); 438 current_.scopes[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]);
441 PrintF("compaction_ptrs=%.1f ", 439 PrintF("compaction_ptrs=%.1f ",
442 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]); 440 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]);
443 PrintF("intracompaction_ptrs=%.1f ", 441 PrintF("intracompaction_ptrs=%.1f ",
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 746
749 747
750 bool GCTracer::SurvivalEventsRecorded() const { 748 bool GCTracer::SurvivalEventsRecorded() const {
751 return survival_events_.size() > 0; 749 return survival_events_.size() > 0;
752 } 750 }
753 751
754 752
755 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } 753 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); }
756 } // namespace internal 754 } // namespace internal
757 } // namespace v8 755 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/gc-tracer.h ('k') | src/heap/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698