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

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

Issue 1345273004: [heap] Add timer scopes to process weak cells and clear non-live references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 current_.scopes[Scope::MC_UPDATE_MISC_POINTERS]); 443 current_.scopes[Scope::MC_UPDATE_MISC_POINTERS]);
444 PrintF("weak_closure=%.1f ", current_.scopes[Scope::MC_WEAKCLOSURE]); 444 PrintF("weak_closure=%.1f ", current_.scopes[Scope::MC_WEAKCLOSURE]);
445 PrintF("inc_weak_closure=%.1f ", 445 PrintF("inc_weak_closure=%.1f ",
446 current_.scopes[Scope::MC_INCREMENTAL_WEAKCLOSURE]); 446 current_.scopes[Scope::MC_INCREMENTAL_WEAKCLOSURE]);
447 PrintF("weakcollection_process=%.1f ", 447 PrintF("weakcollection_process=%.1f ",
448 current_.scopes[Scope::MC_WEAKCOLLECTION_PROCESS]); 448 current_.scopes[Scope::MC_WEAKCOLLECTION_PROCESS]);
449 PrintF("weakcollection_clear=%.1f ", 449 PrintF("weakcollection_clear=%.1f ",
450 current_.scopes[Scope::MC_WEAKCOLLECTION_CLEAR]); 450 current_.scopes[Scope::MC_WEAKCOLLECTION_CLEAR]);
451 PrintF("weakcollection_abort=%.1f ", 451 PrintF("weakcollection_abort=%.1f ",
452 current_.scopes[Scope::MC_WEAKCOLLECTION_ABORT]); 452 current_.scopes[Scope::MC_WEAKCOLLECTION_ABORT]);
453 PrintF("weakcells=%.1f ", current_.scopes[Scope::MC_WEAKCELL]);
454 PrintF("nonlive_refs=%.1f ",
455 current_.scopes[Scope::MC_NONLIVEREFERENCES]);
453 456
454 PrintF("steps_count=%d ", current_.incremental_marking_steps); 457 PrintF("steps_count=%d ", current_.incremental_marking_steps);
455 PrintF("steps_took=%.1f ", current_.incremental_marking_duration); 458 PrintF("steps_took=%.1f ", current_.incremental_marking_duration);
456 PrintF("longest_step=%.1f ", current_.longest_incremental_marking_step); 459 PrintF("longest_step=%.1f ", current_.longest_incremental_marking_step);
457 PrintF("incremental_marking_throughput=%" V8_PTR_PREFIX "d ", 460 PrintF("incremental_marking_throughput=%" V8_PTR_PREFIX "d ",
458 IncrementalMarkingSpeedInBytesPerMillisecond()); 461 IncrementalMarkingSpeedInBytesPerMillisecond());
459 break; 462 break;
460 case Event::START: 463 case Event::START:
461 break; 464 break;
462 default: 465 default:
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 748
746 749
747 bool GCTracer::SurvivalEventsRecorded() const { 750 bool GCTracer::SurvivalEventsRecorded() const {
748 return survival_events_.size() > 0; 751 return survival_events_.size() > 0;
749 } 752 }
750 753
751 754
752 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); } 755 void GCTracer::ResetSurvivalEvents() { survival_events_.reset(); }
753 } // namespace internal 756 } // namespace internal
754 } // namespace v8 757 } // 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