Skip to content

Commit

Permalink
Add metric for memory maps count (#13758)
Browse files Browse the repository at this point in the history
  • Loading branch information
abyss7 authored Jan 24, 2025
1 parent 06b6808 commit fc35a4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ydb/core/memory_controller/memory_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ class TMemoryController : public TActorBootstrapped<TMemoryController> {
Counters->GetCounter("Stats/CGroupLimit")->Set(processMemoryInfo.CGroupLimit.value_or(0));
Counters->GetCounter("Stats/MemTotal")->Set(processMemoryInfo.MemTotal.value_or(0));
Counters->GetCounter("Stats/MemAvailable")->Set(processMemoryInfo.MemAvailable.value_or(0));
Counters->GetCounter("Stats/MemMapsCount")->Set(GetMemoryMapsCount());
Counters->GetCounter("Stats/AllocatedMemory")->Set(processMemoryInfo.AllocatedMemory);
Counters->GetCounter("Stats/AllocatorCachesMemory")->Set(processMemoryInfo.AllocatorCachesMemory);
Counters->GetCounter("Stats/HardLimit")->Set(hardLimitBytes);
Expand Down

0 comments on commit fc35a4a

Please sign in to comment.