1 | // Copyright 2013 The Flutter Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. |
4 | |
5 | #ifndef FLUTTER_FML_BACKTRACE_H_ |
6 | #define FLUTTER_FML_BACKTRACE_H_ |
7 | |
8 | #include <string> |
9 | |
10 | #include "flutter/fml/macros.h" |
11 | |
12 | namespace fml { |
13 | |
14 | // Retrieve the backtrace, for debugging. |
15 | // |
16 | // If the |offset| is 0, the backtrace is included caller function. |
17 | std::string BacktraceHere(size_t offset = 0); |
18 | |
19 | void InstallCrashHandler(); |
20 | |
21 | bool IsCrashHandlingSupported(); |
22 | |
23 | } // namespace fml |
24 | |
25 | #endif // FLUTTER_FML_BACKTRACE_H_ |
26 | |