Backtrace.h 364 B

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