468 B
468 B
IAllocator::GetPeakAllocated
查询峰值分配量。
virtual size_t GetPeakAllocated() const = 0;
行为说明
这是纯虚统计接口,但当前实现并不统一:
ProxyAllocator维护的是净分配峰值。PoolAllocator和LinearAllocator当前返回的是固定容量上界,而不是真实历史峰值。
返回值
size_t- 实现定义的峰值分配量。