diff options
author | dmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-21 08:20:05 +0000 |
---|---|---|
committer | dmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-21 08:20:05 +0000 |
commit | e558397a087212e4157f00ec143367e9d63a4ef7 (patch) | |
tree | 6b4f121110d4a31523ff7a86596cec26d6f41d1a /third_party | |
parent | 5974943f2a694c7e1438d7237b38bfc94910b26a (diff) | |
download | chromium_src-e558397a087212e4157f00ec143367e9d63a4ef7.zip chromium_src-e558397a087212e4157f00ec143367e9d63a4ef7.tar.gz chromium_src-e558397a087212e4157f00ec143367e9d63a4ef7.tar.bz2 |
Add sizes in MMAP_LIST by deep-heap-profile.cc.
BUG=None
R=glider@chromium.org
Review URL: https://codereview.chromium.org/15316009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201255 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/tcmalloc/chromium/src/deep-heap-profile.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc index 2990eee..4c81d62 100644 --- a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc +++ b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc @@ -771,6 +771,9 @@ void DeepHeapProfile::GlobalStats::SnapshotMaps( mmap_dump_buffer->AppendString(kMapsRegionTypeDict[type], 0); mmap_dump_buffer->AppendString(" ", 0); mmap_dump_buffer->AppendInt64(committed_size, 0); + mmap_dump_buffer->AppendString(" / ", 0); + mmap_dump_buffer->AppendInt64( + last_address_of_unhooked - cursor + 1, 0); mmap_dump_buffer->AppendString("\n", 0); } cursor = last_address_of_unhooked + 1; @@ -781,6 +784,17 @@ void DeepHeapProfile::GlobalStats::SnapshotMaps( mmap_dump_buffer) { bool trailing = mmap_iter->start_addr < vma_start_addr; bool continued = mmap_iter->end_addr - 1 > vma_last_addr; + uint64 partial_first_address, partial_last_address; + if (trailing) + partial_first_address = vma_start_addr; + else + partial_first_address = mmap_iter->start_addr; + if (continued) + partial_last_address = vma_last_addr; + else + partial_last_address = mmap_iter->end_addr - 1; + uint64 committed_size = memory_residence_info_getter->CommittedSize( + partial_first_address, partial_last_address); mmap_dump_buffer->AppendString(trailing ? " (" : " ", 0); mmap_dump_buffer->AppendPtr(mmap_iter->start_addr, 0); mmap_dump_buffer->AppendString(trailing ? ")" : " ", 0); @@ -790,6 +804,11 @@ void DeepHeapProfile::GlobalStats::SnapshotMaps( mmap_dump_buffer->AppendString(continued ? ")" : " ", 0); mmap_dump_buffer->AppendString(" hooked ", 0); mmap_dump_buffer->AppendString(kMapsRegionTypeDict[type], 0); + mmap_dump_buffer->AppendString(" ", 0); + mmap_dump_buffer->AppendInt64(committed_size, 0); + mmap_dump_buffer->AppendString(" / ", 0); + mmap_dump_buffer->AppendInt64( + partial_last_address - partial_first_address + 1, 0); mmap_dump_buffer->AppendString(" @ ", 0); if (deep_bucket != NULL) { mmap_dump_buffer->AppendInt(deep_bucket->id, 0, false); |