Isolate::PrintStack: restore default verbose object printing
authorjkummerow <jkummerow@chromium.org>
Fri, 4 Sep 2015 11:30:00 +0000 (04:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 4 Sep 2015 11:30:21 +0000 (11:30 +0000)
Review URL: https://codereview.chromium.org/1311123005

Cr-Commit-Position: refs/heads/master@{#30585}

src/heap/heap.cc
src/string-stream.h

index 3d8f4492027b93983fc55755c04904751bdcc4e1..f1b8c474a81c486a816d500dd88870a336b0c2da 100644 (file)
@@ -5388,7 +5388,7 @@ void Heap::RecordStats(HeapStats* stats, bool take_snapshot) {
     GetFromRingBuffer(stats->last_few_messages);
   if (stats->js_stacktrace != NULL) {
     FixedStringAllocator fixed(stats->js_stacktrace, kStacktraceBufferSize - 1);
-    StringStream accumulator(&fixed);
+    StringStream accumulator(&fixed, StringStream::kPrintObjectConcise);
     isolate()->PrintStack(&accumulator, Isolate::kPrintStackVerbose);
   }
 }
index d03f1b04c9c89b86583aceddc2a8017ba1c0555b..2f11b182d00684cff90b7726884c567e443d5ff7 100644 (file)
@@ -100,7 +100,7 @@ class StringStream final {
  public:
   enum ObjectPrintMode { kPrintObjectConcise, kPrintObjectVerbose };
   StringStream(StringAllocator* allocator,
-               ObjectPrintMode object_print_mode = kPrintObjectConcise)
+               ObjectPrintMode object_print_mode = kPrintObjectVerbose)
       : allocator_(allocator),
         object_print_mode_(object_print_mode),
         capacity_(kInitialCapacity),