summaryrefslogtreecommitdiffstats
path: root/library/cpp/lfalloc/alloc_profiler/stackcollect.h
diff options
context:
space:
mode:
authorvskipin <[email protected]>2022-02-10 16:46:00 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:00 +0300
commit4e4b78bd7b67e2533da4dbb9696374a6d6068e32 (patch)
treea7a5543d815c451256ece74081d960b4e1d70ec2 /library/cpp/lfalloc/alloc_profiler/stackcollect.h
parent5b00ed04a5137a452fa6d3423cb0c9b54ac27408 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/lfalloc/alloc_profiler/stackcollect.h')
-rw-r--r--library/cpp/lfalloc/alloc_profiler/stackcollect.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/library/cpp/lfalloc/alloc_profiler/stackcollect.h b/library/cpp/lfalloc/alloc_profiler/stackcollect.h
index 80715ed7cb5..8c0d65b2961 100644
--- a/library/cpp/lfalloc/alloc_profiler/stackcollect.h
+++ b/library/cpp/lfalloc/alloc_profiler/stackcollect.h
@@ -1,14 +1,14 @@
-#pragma once
-
+#pragma once
+
#include <library/cpp/containers/stack_vector/stack_vec.h>
#include <library/cpp/cache/cache.h>
-#include <util/generic/noncopyable.h>
-#include <util/generic/ptr.h>
+#include <util/generic/noncopyable.h>
+#include <util/generic/ptr.h>
#include <util/stream/output.h>
-
+
namespace NAllocProfiler {
-
+
struct TStats {
intptr_t Allocs = 0;
intptr_t Frees = 0;
@@ -85,23 +85,23 @@ private:
TLFUCache<void*, TSymbol> SymbolCache;
};
-////////////////////////////////////////////////////////////////////////////////
-
-class TAllocationStackCollector: private TNonCopyable {
-private:
- class TImpl;
- THolder<TImpl> Impl;
-
-public:
- TAllocationStackCollector();
- ~TAllocationStackCollector();
-
- int Alloc(void** stack, size_t frameCount, int tag, size_t size);
- void Free(int stackId, size_t size);
-
- void Clear();
-
+////////////////////////////////////////////////////////////////////////////////
+
+class TAllocationStackCollector: private TNonCopyable {
+private:
+ class TImpl;
+ THolder<TImpl> Impl;
+
+public:
+ TAllocationStackCollector();
+ ~TAllocationStackCollector();
+
+ int Alloc(void** stack, size_t frameCount, int tag, size_t size);
+ void Free(int stackId, size_t size);
+
+ void Clear();
+
void Dump(int count, IAllocationStatsDumper& out) const;
-};
-
+};
+
} // namespace NAllocProfiler