#pragma once #include #include #include #include bool SetSignalHandler(int signo, void (*handler)(int)); class IOutputStream; void EnableKikimrBacktraceFormat(); namespace NYql { namespace NBacktrace { const int Limit = 400; void RegisterKikimrFatalActions(); void AddAfterFatalCallback(const std::function& after); void AddBeforeFatalCallback(const std::function& before); void EnableKikimrSymbolize(); void KikimrBackTrace(); void KikimrBackTraceFormatImpl(IOutputStream*); void KikimrBacktraceFormatImpl(IOutputStream* out, void* const* stack, size_t stackSize); void SetModulesMapping(const THashMap& mapping); TString Symbolize(const TString& input, const THashMap& mapping); } /* namespace Backtrace */ } /* namespace NYql */