summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorsgk@chromium.org <sgk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 16:16:39 +0000
committersgk@chromium.org <sgk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 16:16:39 +0000
commit833b88a7a71cff01f35cce5a86b38ff963ae16f2 (patch)
tree4987ccc9a840f87e787b3ba696958b9a52fef126 /build
parent60a3df57be6769e8f2128bca786c0fcfe1d60e31 (diff)
downloadchromium_src-833b88a7a71cff01f35cce5a86b38ff963ae16f2.zip
chromium_src-833b88a7a71cff01f35cce5a86b38ff963ae16f2.tar.gz
chromium_src-833b88a7a71cff01f35cce5a86b38ff963ae16f2.tar.bz2
Add a simple about:tcmalloc page that just displays its canned stats.
Add USE_TCMALLOC to control its inclusion. Make browser depend on tcmalloc to get the PERFTOOLS_DLL_DECL definition. BUG=none TEST=none Review URL: http://codereview.chromium.org/216033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/build_config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/build_config.h b/build/build_config.h
index 906f492..f6e4f3b 100644
--- a/build/build_config.h
+++ b/build/build_config.h
@@ -54,6 +54,11 @@
#define USE_X11 1
#endif
+// Use tcmalloc
+#if defined(OS_WIN) && ! defined(NO_TCMALLOC)
+#define USE_TCMALLOC 1
+#endif
+
// Compiler detection.
#if defined(__GNUC__)
#define COMPILER_GCC 1