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

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

Issue 2646443005: Track async causal stack traces (Closed)
Patch Set: rebase Created 3 years, 10 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 | « runtime/lib/async_patch.dart ('k') | runtime/lib/stacktrace.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 #ifndef RUNTIME_LIB_STACKTRACE_H_ 5 #ifndef RUNTIME_LIB_STACKTRACE_H_
6 #define RUNTIME_LIB_STACKTRACE_H_ 6 #define RUNTIME_LIB_STACKTRACE_H_
7 7
8 namespace dart { 8 namespace dart {
9 9
10 class StackTrace; 10 class StackTrace;
11 class RawStackTrace;
11 12
12 // Creates a StackTrace object from the current stack. Skips the 13 // Creates a StackTrace object from the current stack. Skips the
13 // first skip_frames Dart frames. 14 // first skip_frames Dart frames.
14 // 15 //
15 // This function is exposed to provide stack trace printing in 16 // This function is exposed to provide stack trace printing in
16 // assertion failures, etc. 17 // assertion failures, etc.
17 const StackTrace& GetCurrentStackTrace(int skip_frames); 18 const StackTrace& GetCurrentStackTrace(int skip_frames);
18 19
20 // Creates a StackTrace object to be attached to an exception.
21 RawStackTrace* GetStackTraceForException();
22
19 } // namespace dart 23 } // namespace dart
20 24
21 #endif // RUNTIME_LIB_STACKTRACE_H_ 25 #endif // RUNTIME_LIB_STACKTRACE_H_
OLDNEW
« no previous file with comments | « runtime/lib/async_patch.dart ('k') | runtime/lib/stacktrace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698