diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/backtrace.h | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/backtrace.h')
-rw-r--r-- | util/system/backtrace.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/util/system/backtrace.h b/util/system/backtrace.h index 1abeadc8e2..2fce7585c3 100644 --- a/util/system/backtrace.h +++ b/util/system/backtrace.h @@ -1,22 +1,22 @@ #pragma once - + #include <util/generic/fwd.h> #include <util/system/defaults.h> - + class IOutputStream; - -size_t BackTrace(void** p, size_t len); - -struct TResolvedSymbol { - const char* Name; - void* NearestSymbol; -}; - -TResolvedSymbol ResolveSymbol(void* sym, char* buf, size_t len); - + +size_t BackTrace(void** p, size_t len); + +struct TResolvedSymbol { + const char* Name; + void* NearestSymbol; +}; + +TResolvedSymbol ResolveSymbol(void* sym, char* buf, size_t len); + void FormatBackTrace(IOutputStream* out, void* const* backtrace, size_t backtraceSize); void FormatBackTrace(IOutputStream* out); -void PrintBackTrace(); +void PrintBackTrace(); using TFormatBackTraceFn = void (*)(IOutputStream*, void* const* backtrace, size_t backtraceSize); @@ -30,7 +30,7 @@ private: static constexpr size_t CAPACITY = 300; void* Data[CAPACITY]; size_t Size; - + public: TBackTrace(); void Capture(); |