diff options
author | dmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-17 14:33:35 +0000 |
---|---|---|
committer | dmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-17 14:33:35 +0000 |
commit | 3f652f9b4895034f686eed68f6a5a0ed16553f0b (patch) | |
tree | bc000eb96d1929fd6380c4fc92c130458e5a8d4d | |
parent | 3aac5ad09cdaa6f709821397955513652fb09c46 (diff) | |
download | chromium_src-3f652f9b4895034f686eed68f6a5a0ed16553f0b.zip chromium_src-3f652f9b4895034f686eed68f6a5a0ed16553f0b.tar.gz chromium_src-3f652f9b4895034f686eed68f6a5a0ed16553f0b.tar.bz2 |
Dump bucket ids of mmap'ed regions even if their allocated sizes are small or zero.
BUG=244174
Review URL: https://chromiumcodereview.appspot.com/16354004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206720 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | third_party/tcmalloc/chromium/src/deep-heap-profile.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc index 7541c18..f80128d 100644 --- a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc +++ b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc @@ -592,8 +592,9 @@ void DeepHeapProfile::DeepBucketTable::WriteForBucketFile( if (deep_bucket->is_logged) { continue; // Skip the bucket if it is already logged. } - if (bucket->alloc_size - bucket->free_size <= 64) { - continue; // Skip small buckets. + if (!deep_bucket->is_mmap && + bucket->alloc_size - bucket->free_size <= 64) { + continue; // Skip small malloc buckets. } deep_bucket->UnparseForBucketFile(&buffer); |