tcmalloc: Add generic.total_physical_bytes property to MallocExtension

Original CL:

- https://codereview.chromium.org/1410353005

  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
  CL: www.crrev.com/10499004.

  This is to be used by malloc dump provider for tracing.

  BUG=546491
  Committed: https://crrev.com/0752ec9c6adf641985db1a3a224bf9b8e32e4ac8
  Cr-Commit-Position: refs/heads/master@{#357155}

BUG=724399,b:70905156

Change-Id: I68ae586aacf2f2c1ab09721716b9093d402d649c
Reviewed-on: https://chromium-review.googlesource.com/1130803
Reviewed-by: Will Harris <wfh@chromium.org>
Commit-Queue: Gabriel Marin <gmx@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#596287}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d467a6a943d7af4f63bea2c350e1cad1dac05489
2 files changed
tree: fd579e8c8a124149b2237617325b72d5fdf7092c
  1. src/