llvm/scudo/e2519a08817f32b70decfb907f82a40b391e7501 [scudo] Track maximum resident memory in cache (#219036)
Add tracking for the resident memory in MapAllocatorCache. Unreleased
cache entries where Time != 0 are assumed to be resident, while entries
that have passed through releaseOlderThan where Time == 0 have had their
physical pages discarded.
Tracking is performed by updating CurrentResidentBytes on store, remove,
and release operations, recoding the peak in maxResidentBytes and
reporting it in getStats.
GitOrigin-RevId: 5964066e909c5c443bd2f48a88dc54f263a4d47e
2 files changed