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

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

Issue 769253002: Trace how long it takes to compute the weak closure during mark-compact (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 PrintF("root_new=%.1f ", 332 PrintF("root_new=%.1f ",
333 current_.scopes[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]); 333 current_.scopes[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]);
334 PrintF("old_new=%.1f ", 334 PrintF("old_new=%.1f ",
335 current_.scopes[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]); 335 current_.scopes[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]);
336 PrintF("compaction_ptrs=%.1f ", 336 PrintF("compaction_ptrs=%.1f ",
337 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]); 337 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]);
338 PrintF("intracompaction_ptrs=%.1f ", 338 PrintF("intracompaction_ptrs=%.1f ",
339 current_.scopes[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]); 339 current_.scopes[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]);
340 PrintF("misc_compaction=%.1f ", 340 PrintF("misc_compaction=%.1f ",
341 current_.scopes[Scope::MC_UPDATE_MISC_POINTERS]); 341 current_.scopes[Scope::MC_UPDATE_MISC_POINTERS]);
342 PrintF("weak_closure=%.1f ", current_.scopes[Scope::MC_WEAKCLOSURE]);
342 PrintF("weakcollection_process=%.1f ", 343 PrintF("weakcollection_process=%.1f ",
343 current_.scopes[Scope::MC_WEAKCOLLECTION_PROCESS]); 344 current_.scopes[Scope::MC_WEAKCOLLECTION_PROCESS]);
344 PrintF("weakcollection_clear=%.1f ", 345 PrintF("weakcollection_clear=%.1f ",
345 current_.scopes[Scope::MC_WEAKCOLLECTION_CLEAR]); 346 current_.scopes[Scope::MC_WEAKCOLLECTION_CLEAR]);
346 PrintF("weakcollection_abort=%.1f ", 347 PrintF("weakcollection_abort=%.1f ",
347 current_.scopes[Scope::MC_WEAKCOLLECTION_ABORT]); 348 current_.scopes[Scope::MC_WEAKCOLLECTION_ABORT]);
348 349
349 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", current_.start_object_size); 350 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", current_.start_object_size);
350 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", current_.end_object_size); 351 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", current_.end_object_size);
351 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ", current_.start_holes_size); 352 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ", current_.start_holes_size);
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 context_disposal_events_.begin(); 551 context_disposal_events_.begin();
551 while (iter != context_disposal_events_.end()) { 552 while (iter != context_disposal_events_.end()) {
552 end = iter->time_; 553 end = iter->time_;
553 ++iter; 554 ++iter;
554 } 555 }
555 556
556 return (begin - end) / context_disposal_events_.size(); 557 return (begin - end) / context_disposal_events_.size();
557 } 558 }
558 } 559 }
559 } // namespace v8::internal 560 } // namespace v8::internal
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