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

Side by Side Diff: src/heap.cc

Issue 11377134: Output max incremental step delay in trace_gc_nvp. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 | « no previous file | no next file » | 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 7209 matching lines...) Expand 10 before | Expand all | Expand 10 after
7220 7220
7221 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc_); 7221 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc_);
7222 PrintF("promoted=%" V8_PTR_PREFIX "d ", promoted_objects_size_); 7222 PrintF("promoted=%" V8_PTR_PREFIX "d ", promoted_objects_size_);
7223 7223
7224 if (collector_ == SCAVENGER) { 7224 if (collector_ == SCAVENGER) {
7225 PrintF("stepscount=%d ", steps_count_since_last_gc_); 7225 PrintF("stepscount=%d ", steps_count_since_last_gc_);
7226 PrintF("stepstook=%d ", static_cast<int>(steps_took_since_last_gc_)); 7226 PrintF("stepstook=%d ", static_cast<int>(steps_took_since_last_gc_));
7227 } else { 7227 } else {
7228 PrintF("stepscount=%d ", steps_count_); 7228 PrintF("stepscount=%d ", steps_count_);
7229 PrintF("stepstook=%d ", static_cast<int>(steps_took_)); 7229 PrintF("stepstook=%d ", static_cast<int>(steps_took_));
7230 PrintF("longeststep=%.f ", longest_step_);
ulan 2012/11/13 15:30:02 Note that I am rounding to int here, we probably d
Michael Starzinger 2012/11/14 11:35:39 I think printing an integer here is fine. But note
7230 } 7231 }
7231 7232
7232 PrintF("\n"); 7233 PrintF("\n");
7233 } 7234 }
7234 7235
7235 heap_->PrintShortHeapStatistics(); 7236 heap_->PrintShortHeapStatistics();
7236 } 7237 }
7237 7238
7238 7239
7239 const char* GCTracer::CollectorString() { 7240 const char* GCTracer::CollectorString() {
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
7501 static_cast<int>(object_sizes_last_time_[index])); 7502 static_cast<int>(object_sizes_last_time_[index]));
7502 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) 7503 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT)
7503 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7504 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7504 7505
7505 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7506 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7506 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7507 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7507 ClearObjectStats(); 7508 ClearObjectStats();
7508 } 7509 }
7509 7510
7510 } } // namespace v8::internal 7511 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698