Flutter Engine
The Flutter Engine
third_party
dart-lang
sdk
runtime
lib
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
10
namespace
dart
{
11
12
class
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.
19
const
StackTrace&
GetCurrentStackTrace
(
int
skip_frames);
20
21
// Creates a StackTrace object to be attached to an exception.
22
StackTracePtr
GetStackTraceForException
();
23
24
// Returns false if there is no Dart stack available.
25
bool
HasStack
();
26
27
}
// namespace dart
28
29
#endif
// RUNTIME_LIB_STACKTRACE_H_
dart
Definition:
dart_vm.cc:33
dart::GetStackTraceForException
StackTracePtr GetStackTraceForException()
Definition:
stacktrace.cc:56
dart::HasStack
bool HasStack()
Definition:
stacktrace.cc:106
dart::GetCurrentStackTrace
const StackTrace & GetCurrentStackTrace(int skip_frames)
Definition:
stacktrace.cc:94
tagged_pointer.h
Generated on Sun Jun 23 2024 21:55:25 for Flutter Engine by
1.9.4