alloc_stats.h 482 B

123456789101112131415161718
  1. #pragma once
  2. #include <util/system/types.h>
  3. namespace NAllocStats {
  4. bool IsEnabled() noexcept;
  5. void EnableAllocStats(bool enable) noexcept;
  6. void IncThreadAllocStats(i64 size) noexcept;
  7. void DecThreadAllocStats(i64 size) noexcept;
  8. void ResetThreadAllocStats() noexcept;
  9. i64 GetThreadAllocMax() noexcept;
  10. void IncLiveLockCounter() noexcept;
  11. ui64 GetLiveLockCounter() noexcept;
  12. void IncMmapCounter(ui64 amount) noexcept;
  13. ui64 GetMmapCounter() noexcept;
  14. } // namespace NAllocStats