aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/balloc/lib/alloc_stats.h
blob: a36686cc85f3a842a83e24657085d91fca8ae05e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <util/system/types.h>

namespace NAllocStats {

bool IsEnabled() noexcept;
void EnableAllocStats(bool enable) noexcept;
void IncThreadAllocStats(i64 size) noexcept;
void DecThreadAllocStats(i64 size) noexcept;
void ResetThreadAllocStats() noexcept;
i64 GetThreadAllocMax() noexcept;
void IncLiveLockCounter() noexcept;
ui64 GetLiveLockCounter() noexcept;
void IncMmapCounter(ui64 amount) noexcept;
ui64 GetMmapCounter() noexcept;

}  // namespace NAllocStats