backtrace.h 883 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include <util/system/types.h>
  3. #include <util/generic/string.h>
  4. #include <util/generic/hash.h>
  5. #include <functional>
  6. bool SetSignalHandler(int signo, void (*handler)(int));
  7. class IOutputStream;
  8. void EnableKikimrBacktraceFormat();
  9. namespace NYql {
  10. namespace NBacktrace {
  11. const int Limit = 400;
  12. void RegisterKikimrFatalActions();
  13. void AddAfterFatalCallback(const std::function<void(int)>& after);
  14. void AddBeforeFatalCallback(const std::function<void(int)>& before);
  15. void EnableKikimrSymbolize();
  16. void KikimrBackTrace();
  17. void KikimrBackTraceFormatImpl(IOutputStream*);
  18. void KikimrBacktraceFormatImpl(IOutputStream* out, void* const* stack, size_t stackSize);
  19. void SetModulesMapping(const THashMap<TString, TString>& mapping);
  20. TString Symbolize(const TString& input, const THashMap<TString, TString>& mapping);
  21. } /* namespace Backtrace */
  22. } /* namespace NYql */