Clarify relationship between stats.resident and stats.mapped.

This commit is contained in:
Jason Evans
2015-05-28 15:03:58 -07:00
parent 09983d2f54
commit 56048baeb4
3 changed files with 15 additions and 7 deletions

View File

@@ -132,6 +132,8 @@ base_stats_get(size_t *allocated, size_t *resident, size_t *mapped)
{
malloc_mutex_lock(&base_mtx);
assert(base_allocated <= base_resident);
assert(base_resident <= base_mapped);
*allocated = base_allocated;
*resident = base_resident;
*mapped = base_mapped;