tcmalloc: Add generic.total_physical_bytes property to MallocExtension
Add generic.total_physical_bytes property to MallocExtension
The actual physical memory usage of tcmalloc cannot be obtained by
GetNumericProperty. This accounts for the current_allocated_bytes,
fragmentation and malloc metadata, and excludes the unmapped memory
regions. This helps the user to understand how much memory is actually
being used for the allocations that were made.
This change is done only in chromium tree since the
metadata_unmapped_bytes is added only in the chromium's tcmalloc in
This is to be used by malloc dump provider for tracing.
Reviewed-by: Will Harris <firstname.lastname@example.org>
Commit-Queue: Gabriel Marin <email@example.com>
2 files changed