Flutter Engine
The Flutter Engine
stacktrace.h
Go to the documentation of this 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
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_LIB_STACKTRACE_H_
6#define RUNTIME_LIB_STACKTRACE_H_
7
8#include "vm/tagged_pointer.h"
9
10namespace dart {
11
12class StackTrace;
13
14// Creates a StackTrace object from the current stack. Skips the
15// first skip_frames Dart frames.
16//
17// This function is exposed to provide stack trace printing in
18// assertion failures, etc.
19const StackTrace& GetCurrentStackTrace(int skip_frames);
20
21// Creates a StackTrace object to be attached to an exception.
22StackTracePtr GetStackTraceForException();
23
24// Returns false if there is no Dart stack available.
25bool HasStack();
26
27} // namespace dart
28
29#endif // RUNTIME_LIB_STACKTRACE_H_
Definition: dart_vm.cc:33
StackTracePtr GetStackTraceForException()
Definition: stacktrace.cc:56
bool HasStack()
Definition: stacktrace.cc:106
const StackTrace & GetCurrentStackTrace(int skip_frames)
Definition: stacktrace.cc:94