Skip to content

IBlockPoolMonitor Methods

Monitor track block pool related metrics. Block pool is used in cache system for memory management

Report(long, long, long)

abstract
public abstract void Report(long totalSizeInByte, long availableMemoryInByte, long claimedMemoryInByte)
Periodically report block pool status

Parameters

totalSizeInBytelong
Total memory this block pool allocated.
availableMemoryInBytelong
Memory which is available for allocating to caches.
claimedMemoryInBytelong
Memory in use by caches.

TrackMemoryAllocated(long)

abstract
public abstract void TrackMemoryAllocated(long allocatedMemoryInBytes)
Called when memory is newly allocated by the cache.

Parameters

allocatedMemoryInByteslong
The allocated memory, in bytes.

TrackMemoryReleased(long)

abstract
public abstract void TrackMemoryReleased(long releasedMemoryInBytes)
Called when memory is released by the cache.

Parameters

releasedMemoryInByteslong
The released memory, in bytes.