pub struct JemallocStats {
pub allocated: NumBytes,
pub active: NumBytes,
pub metadata: NumBytes,
pub resident: NumBytes,
pub mapped: NumBytes,
pub retained: NumBytes,
}
Fields§
§allocated: NumBytes
stats.allocated` - Total number of bytes allocated by the application.
active: NumBytes
stats.active
Total number of bytes in active pages allocated by the application. This is a multiple of
the page size, and greater than or equal to stats.allocated. This does not include
stats.arenas..pdirty, stats.arenas..pmuzzy, nor pages entirely devoted to allocator
metadata.
metadata: NumBytes
stats.metadata (size_t) r- [–enable-stats] Total number of bytes dedicated to metadata, which comprise base allocations used for bootstrap-sensitive allocator metadata structures (see stats.arenas..base) and internal allocations (see stats.arenas..internal). Transparent huge page (enabled with opt.metadata_thp) usage is not considered.
resident: NumBytes
stats.resident (size_t) r- [–enable-stats] Maximum number of bytes in physically resident data pages mapped by the allocator, comprising all pages dedicated to allocator metadata, pages backing active allocations, and unused dirty pages. This is a maximum rather than precise because pages may not actually be physically resident if they correspond to demand-zeroed virtual memory that has not yet been touched. This is a multiple of the page size, and is larger than stats.active.
mapped: NumBytes
stats.mapped (size_t) r- [–enable-stats] Total number of bytes in active extents mapped by the allocator. This is larger than stats.active. This does not include inactive extents, even those that contain unused dirty pages, which means that there is no strict ordering between this and stats.resident.
retained: NumBytes
stats.retained (size_t) r- [–enable-stats] Total number of bytes in virtual memory mappings that were retained rather than being returned to the operating system via e.g. munmap(2) or similar. Retained virtual memory is typically untouched, decommitted, or purged, so it has no strongly associated physical memory (see extent hooks for details). Retained memory is excluded from mapped memory statistics, e.g. stats.mapped.