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

Side by Side Diff: src/heap/heap.cc

Issue 1311123005: Isolate::PrintStack: restore default verbose object printing (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 | « no previous file | src/string-stream.h » ('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/heap/heap.h" 5 #include "src/heap/heap.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/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 5370 matching lines...) Expand 10 before | Expand all | Expand 10 after
5381 InstanceType type = obj->map()->instance_type(); 5381 InstanceType type = obj->map()->instance_type();
5382 DCHECK(0 <= type && type <= LAST_TYPE); 5382 DCHECK(0 <= type && type <= LAST_TYPE);
5383 stats->objects_per_type[type]++; 5383 stats->objects_per_type[type]++;
5384 stats->size_per_type[type] += obj->Size(); 5384 stats->size_per_type[type] += obj->Size();
5385 } 5385 }
5386 } 5386 }
5387 if (stats->last_few_messages != NULL) 5387 if (stats->last_few_messages != NULL)
5388 GetFromRingBuffer(stats->last_few_messages); 5388 GetFromRingBuffer(stats->last_few_messages);
5389 if (stats->js_stacktrace != NULL) { 5389 if (stats->js_stacktrace != NULL) {
5390 FixedStringAllocator fixed(stats->js_stacktrace, kStacktraceBufferSize - 1); 5390 FixedStringAllocator fixed(stats->js_stacktrace, kStacktraceBufferSize - 1);
5391 StringStream accumulator(&fixed); 5391 StringStream accumulator(&fixed, StringStream::kPrintObjectConcise);
5392 isolate()->PrintStack(&accumulator, Isolate::kPrintStackVerbose); 5392 isolate()->PrintStack(&accumulator, Isolate::kPrintStackVerbose);
5393 } 5393 }
5394 } 5394 }
5395 5395
5396 5396
5397 intptr_t Heap::PromotedSpaceSizeOfObjects() { 5397 intptr_t Heap::PromotedSpaceSizeOfObjects() {
5398 return old_space_->SizeOfObjects() + code_space_->SizeOfObjects() + 5398 return old_space_->SizeOfObjects() + code_space_->SizeOfObjects() +
5399 map_space_->SizeOfObjects() + lo_space_->SizeOfObjects(); 5399 map_space_->SizeOfObjects() + lo_space_->SizeOfObjects();
5400 } 5400 }
5401 5401
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after
6671 *object_sub_type = "CODE_AGE/" #name; \ 6671 *object_sub_type = "CODE_AGE/" #name; \
6672 return true; 6672 return true;
6673 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) 6673 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME)
6674 #undef COMPARE_AND_RETURN_NAME 6674 #undef COMPARE_AND_RETURN_NAME
6675 } 6675 }
6676 return false; 6676 return false;
6677 } 6677 }
6678 6678
6679 } // namespace internal 6679 } // namespace internal
6680 } // namespace v8 6680 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/string-stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698