aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/backtrace.h
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /util/system/backtrace.h
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
downloadydb-1f553f46fb4f3c5eec631352cdd900a0709016af.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/backtrace.h')
-rw-r--r--util/system/backtrace.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/system/backtrace.h b/util/system/backtrace.h
index 2fce7585c3..71b3c8f528 100644
--- a/util/system/backtrace.h
+++ b/util/system/backtrace.h
@@ -17,7 +17,7 @@ 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();
-
+
using TFormatBackTraceFn = void (*)(IOutputStream*, void* const* backtrace, size_t backtraceSize);
TFormatBackTraceFn SetFormatBackTraceFn(TFormatBackTraceFn f);
@@ -25,15 +25,15 @@ TFormatBackTraceFn GetFormatBackTraceFn();
using TBackTraceView = TArrayRef<void* const>;
-class TBackTrace {
-private:
+class TBackTrace {
+private:
static constexpr size_t CAPACITY = 300;
- void* Data[CAPACITY];
- size_t Size;
+ void* Data[CAPACITY];
+ size_t Size;
-public:
- TBackTrace();
- void Capture();
+public:
+ TBackTrace();
+ void Capture();
void PrintTo(IOutputStream&) const;
TString PrintToString() const;
size_t size() const;
@@ -41,4 +41,4 @@ public:
operator TBackTraceView() const;
static TBackTrace FromCurrentException();
-};
+};