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

Side by Side Diff: src/heap.cc

Issue 331053003: Added more detailed sweeping timing counters. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.h ('k') | src/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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/once.h" 9 #include "src/base/once.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 6103 matching lines...) Expand 10 before | Expand all | Expand 10 after
6114 default: 6114 default:
6115 UNREACHABLE(); 6115 UNREACHABLE();
6116 } 6116 }
6117 PrintF(" "); 6117 PrintF(" ");
6118 6118
6119 PrintF("external=%.1f ", scopes_[Scope::EXTERNAL]); 6119 PrintF("external=%.1f ", scopes_[Scope::EXTERNAL]);
6120 PrintF("mark=%.1f ", scopes_[Scope::MC_MARK]); 6120 PrintF("mark=%.1f ", scopes_[Scope::MC_MARK]);
6121 PrintF("sweep=%.2f ", scopes_[Scope::MC_SWEEP]); 6121 PrintF("sweep=%.2f ", scopes_[Scope::MC_SWEEP]);
6122 PrintF("sweepns=%.2f ", scopes_[Scope::MC_SWEEP_NEWSPACE]); 6122 PrintF("sweepns=%.2f ", scopes_[Scope::MC_SWEEP_NEWSPACE]);
6123 PrintF("sweepos=%.2f ", scopes_[Scope::MC_SWEEP_OLDSPACE]); 6123 PrintF("sweepos=%.2f ", scopes_[Scope::MC_SWEEP_OLDSPACE]);
6124 PrintF("sweepcode=%.2f ", scopes_[Scope::MC_SWEEP_CODE]);
6125 PrintF("sweepcell=%.2f ", scopes_[Scope::MC_SWEEP_CELL]);
6126 PrintF("sweepmap=%.2f ", scopes_[Scope::MC_SWEEP_MAP]);
6124 PrintF("evacuate=%.1f ", scopes_[Scope::MC_EVACUATE_PAGES]); 6127 PrintF("evacuate=%.1f ", scopes_[Scope::MC_EVACUATE_PAGES]);
6125 PrintF("new_new=%.1f ", scopes_[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS]); 6128 PrintF("new_new=%.1f ", scopes_[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS]);
6126 PrintF("root_new=%.1f ", scopes_[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]); 6129 PrintF("root_new=%.1f ", scopes_[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]);
6127 PrintF("old_new=%.1f ", scopes_[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]); 6130 PrintF("old_new=%.1f ", scopes_[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]);
6128 PrintF("compaction_ptrs=%.1f ", 6131 PrintF("compaction_ptrs=%.1f ",
6129 scopes_[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]); 6132 scopes_[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]);
6130 PrintF("intracompaction_ptrs=%.1f ", 6133 PrintF("intracompaction_ptrs=%.1f ",
6131 scopes_[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]); 6134 scopes_[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]);
6132 PrintF("misc_compaction=%.1f ", scopes_[Scope::MC_UPDATE_MISC_POINTERS]); 6135 PrintF("misc_compaction=%.1f ", scopes_[Scope::MC_UPDATE_MISC_POINTERS]);
6133 PrintF("weakcollection_process=%.1f ", 6136 PrintF("weakcollection_process=%.1f ",
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
6436 static_cast<int>(object_sizes_last_time_[index])); 6439 static_cast<int>(object_sizes_last_time_[index]));
6437 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6440 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6438 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6441 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6439 6442
6440 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6443 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6441 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6444 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6442 ClearObjectStats(); 6445 ClearObjectStats();
6443 } 6446 }
6444 6447
6445 } } // namespace v8::internal 6448 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698