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

Side by Side Diff: src/heap.cc

Issue 203263014: Added sweeping time measurement for old space sweeping. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 7413 matching lines...) Expand 10 before | Expand all | Expand 10 after
7424 case MARK_COMPACTOR: 7424 case MARK_COMPACTOR:
7425 PrintF("ms"); 7425 PrintF("ms");
7426 break; 7426 break;
7427 default: 7427 default:
7428 UNREACHABLE(); 7428 UNREACHABLE();
7429 } 7429 }
7430 PrintF(" "); 7430 PrintF(" ");
7431 7431
7432 PrintF("external=%.1f ", scopes_[Scope::EXTERNAL]); 7432 PrintF("external=%.1f ", scopes_[Scope::EXTERNAL]);
7433 PrintF("mark=%.1f ", scopes_[Scope::MC_MARK]); 7433 PrintF("mark=%.1f ", scopes_[Scope::MC_MARK]);
7434 PrintF("sweep=%.1f ", scopes_[Scope::MC_SWEEP]); 7434 PrintF("sweep=%.2f ", scopes_[Scope::MC_SWEEP]);
7435 PrintF("sweepns=%.1f ", scopes_[Scope::MC_SWEEP_NEWSPACE]); 7435 PrintF("sweepns=%.2f ", scopes_[Scope::MC_SWEEP_NEWSPACE]);
7436 PrintF("sweepos=%.2f ", scopes_[Scope::MC_SWEEP_OLDSPACE]);
7436 PrintF("evacuate=%.1f ", scopes_[Scope::MC_EVACUATE_PAGES]); 7437 PrintF("evacuate=%.1f ", scopes_[Scope::MC_EVACUATE_PAGES]);
7437 PrintF("new_new=%.1f ", scopes_[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS]); 7438 PrintF("new_new=%.1f ", scopes_[Scope::MC_UPDATE_NEW_TO_NEW_POINTERS]);
7438 PrintF("root_new=%.1f ", scopes_[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]); 7439 PrintF("root_new=%.1f ", scopes_[Scope::MC_UPDATE_ROOT_TO_NEW_POINTERS]);
7439 PrintF("old_new=%.1f ", scopes_[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]); 7440 PrintF("old_new=%.1f ", scopes_[Scope::MC_UPDATE_OLD_TO_NEW_POINTERS]);
7440 PrintF("compaction_ptrs=%.1f ", 7441 PrintF("compaction_ptrs=%.1f ",
7441 scopes_[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]); 7442 scopes_[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]);
7442 PrintF("intracompaction_ptrs=%.1f ", 7443 PrintF("intracompaction_ptrs=%.1f ",
7443 scopes_[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]); 7444 scopes_[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]);
7444 PrintF("misc_compaction=%.1f ", scopes_[Scope::MC_UPDATE_MISC_POINTERS]); 7445 PrintF("misc_compaction=%.1f ", scopes_[Scope::MC_UPDATE_MISC_POINTERS]);
7445 PrintF("weakcollection_process=%.1f ", 7446 PrintF("weakcollection_process=%.1f ",
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
7750 static_cast<int>(object_sizes_last_time_[index])); 7751 static_cast<int>(object_sizes_last_time_[index]));
7751 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 7752 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
7752 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7753 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7753 7754
7754 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7755 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7755 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7756 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7756 ClearObjectStats(); 7757 ClearObjectStats();
7757 } 7758 }
7758 7759
7759 } } // namespace v8::internal 7760 } } // 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