1 | #ifndef C10_UTIL_BACKTRACE_H_ |
---|---|
2 | #define C10_UTIL_BACKTRACE_H_ |
3 | |
4 | #include <cstddef> |
5 | #include <string> |
6 | #include <typeinfo> |
7 | |
8 | #include <c10/macros/Macros.h> |
9 | |
10 | namespace c10 { |
11 | C10_API std::string get_backtrace( |
12 | size_t frames_to_skip = 0, |
13 | size_t maximum_number_of_frames = 64, |
14 | bool skip_python_frames = true); |
15 | } // namespace c10 |
16 | |
17 | #endif // C10_UTIL_BACKTRACE_H_ |
18 |