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

Side by Side Diff: runtime/lib/stacktrace.cc

Issue 2032153003: Use clustered serialization for full snapshots. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: round2 Created 4 years, 5 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 | runtime/vm/benchmark_test.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "lib/stacktrace.h" 5 #include "lib/stacktrace.h"
6 #include "vm/bootstrap_natives.h" 6 #include "vm/bootstrap_natives.h"
7 #include "vm/exceptions.h" 7 #include "vm/exceptions.h"
8 #include "vm/object_store.h" 8 #include "vm/object_store.h"
9 #include "vm/runtime_entry.h" 9 #include "vm/runtime_entry.h"
10 #include "vm/stack_frame.h" 10 #include "vm/stack_frame.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // An utility method for convenient printing of dart stack traces when 54 // An utility method for convenient printing of dart stack traces when
55 // inside 'gdb'. Note: This function will only work when there is a 55 // inside 'gdb'. Note: This function will only work when there is a
56 // valid exit frame information. It will not work when a breakpoint is 56 // valid exit frame information. It will not work when a breakpoint is
57 // set in dart code and control is got inside 'gdb' without going through 57 // set in dart code and control is got inside 'gdb' without going through
58 // the runtime or native transition stub. 58 // the runtime or native transition stub.
59 void _printCurrentStacktrace() { 59 void _printCurrentStacktrace() {
60 const Stacktrace& stacktrace = GetCurrentStacktrace(0); 60 const Stacktrace& stacktrace = GetCurrentStacktrace(0);
61 OS::PrintErr("=== Current Trace:\n%s===\n", stacktrace.ToCString()); 61 OS::PrintErr("=== Current Trace:\n%s===\n", stacktrace.ToCString());
62 } 62 }
63 63
64 // Like _printCurrentStacktrace, but works in a NoSafepointScope.
65 void _printCurrentStacktraceNoSafepoint() {
66 StackFrameIterator frames(StackFrameIterator::kDontValidateFrames);
67 StackFrame* frame = frames.NextFrame();
68 while (frame != NULL) {
69 OS::Print("%s\n", frame->ToCString());
70 frame = frames.NextFrame();
71 }
72 }
73
64 DEFINE_NATIVE_ENTRY(StackTrace_current, 0) { 74 DEFINE_NATIVE_ENTRY(StackTrace_current, 0) {
65 const Stacktrace& stacktrace = GetCurrentStacktrace(1); 75 const Stacktrace& stacktrace = GetCurrentStacktrace(1);
66 return stacktrace.raw(); 76 return stacktrace.raw();
67 } 77 }
68 78
69 } // namespace dart 79 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/benchmark_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698