summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authordmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-27 04:05:47 +0000
committerdmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-27 04:05:47 +0000
commit4822ca91882b14cbbd31fbdb9efe79058e5e2072 (patch)
tree47a9de267cb2b1a11afe2e77c5acfede48869e9e /third_party
parentc85864dbf8d195c97fd3821d5b3e035ad96c3060 (diff)
downloadchromium_src-4822ca91882b14cbbd31fbdb9efe79058e5e2072.zip
chromium_src-4822ca91882b14cbbd31fbdb9efe79058e5e2072.tar.gz
chromium_src-4822ca91882b14cbbd31fbdb9efe79058e5e2072.tar.bz2
Make the profile buffer larger in third_party/tcmalloc/chromium.
This patch is originally from http://codereview.chromium.org/7865021/. BUG=none TEST=none Review URL: http://codereview.chromium.org/8634005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115805 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/tcmalloc/chromium/src/heap-profiler.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/third_party/tcmalloc/chromium/src/heap-profiler.cc b/third_party/tcmalloc/chromium/src/heap-profiler.cc
index cb34f01..42a5190 100644
--- a/third_party/tcmalloc/chromium/src/heap-profiler.cc
+++ b/third_party/tcmalloc/chromium/src/heap-profiler.cc
@@ -145,7 +145,11 @@ static void ProfilerFree(void* p) {
}
// We use buffers of this size in DoGetHeapProfile.
-static const int kProfileBufferSize = 1 << 20;
+// The size is 1 << 20 in the original google-perftools. Changed it to
+// 5 << 20 since a larger buffer is requried for deeper profiling in Chromium.
+// The buffer is allocated only when the environment variable HEAPPROFILE is
+// specified to dump heap information.
+static const int kProfileBufferSize = 5 << 20;
// This is a last-ditch buffer we use in DumpProfileLocked in case we
// can't allocate more memory from ProfilerMalloc. We expect this