Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Issue 2316813002: Use tcmalloc on Linux (Closed)

Created:
4 years, 3 months ago by zra
Modified:
4 years, 3 months ago
Reviewers:
Bill Hesse, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use tcmalloc on Linux Statically linking in the tcmalloc code is enough to override the built-in malloc. I have this set up to exclude the code for collecting heap profiles in a Product build. There's still about a 230KB increase in binary size, though. I think this isn't a big problem since right now this is enabled only for server Linux. product binary size: before x64: 9569600 after x64: 9807840 increase: 238240 (2.5%) before ia32: 9122836 after ia32: 9360944 increase: 238108 (2.6%) before mips: 9418680 after mips: 9640940 increase: 222260 (2.4%) InitialRSS: product: before x64: 6307840 after x64: 7430144 increase: 1122304 (17.8%) release (--no-profiler) before x64: 7843840 after x64: 9207808 increase: 1363968 (17.4%) R=asiva@google.com, whesse@google.com Committed: https://github.com/dart-lang/sdk/commit/44a04f18f9232c25e668b594ed6f21db54ca49cf

Patch Set 1 #

Patch Set 2 : Remove and ignore files #

Patch Set 3 : Remove more .deps files #

Patch Set 4 : Remove tests. Fix non-UTF8 chars #

Patch Set 5 : Fix profiling for MIPS, remove unused code #

Patch Set 6 : DEPS in tcmalloc instead of copy #

Patch Set 7 : Merge #

Patch Set 8 : Add back gperftools DEPS #

Patch Set 9 : Update README.dart #

Total comments: 1

Patch Set 10 : Use github mirror for gperftools #

Patch Set 11 : Don't use tcmalloc in an ASAN build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+803 lines, -0 lines) Patch
M DEPS View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M runtime/bin/bin.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -0 lines 0 comments Download
M runtime/tools/gyp/runtime-configurations.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M third_party/.gitignore View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A third_party/tcmalloc/.gitignore View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/tcmalloc/README.dart View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/tcmalloc/configure_command View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A third_party/tcmalloc/include/config.h View 1 2 3 4 5 1 chunk +308 lines, -0 lines 0 comments Download
A third_party/tcmalloc/include/gperftools/tcmalloc.h View 1 2 3 4 5 1 chunk +147 lines, -0 lines 0 comments Download
A third_party/tcmalloc/tcmalloc.gypi View 1 2 3 4 5 1 chunk +104 lines, -0 lines 0 comments Download
A third_party/tcmalloc/tcmalloc_sources.gypi View 1 2 3 4 5 1 chunk +161 lines, -0 lines 0 comments Download
M tools/gyp/all.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gyp/configurations.gypi View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M tools/gyp/configurations_make.gypi View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
zra
4 years, 3 months ago (2016-09-08 19:41:53 UTC) #5
zra
Question for whesse@ about the github mirror. https://codereview.chromium.org/2316813002/diff/110001/DEPS File DEPS (right): https://codereview.chromium.org/2316813002/diff/110001/DEPS#newcode173 DEPS:173: "https://github.com/gperftools/gperftools.git" + ...
4 years, 3 months ago (2016-09-13 15:59:00 UTC) #8
Bill Hesse
LGTM. The wiki page about adding third-party dependencies says to wait until the mirror is ...
4 years, 3 months ago (2016-09-14 08:44:49 UTC) #9
zra
Updated to use the github mirror.
4 years, 3 months ago (2016-09-14 18:27:50 UTC) #10
zra
@asiva, did you have any comments?
4 years, 3 months ago (2016-09-15 20:33:45 UTC) #11
siva
lgtm sorry didn't realize you were waiting for me.
4 years, 3 months ago (2016-09-16 00:44:31 UTC) #12
siva
lgtm sorry didn't realize you were waiting for me.
4 years, 3 months ago (2016-09-16 00:44:33 UTC) #13
zra
4 years, 3 months ago (2016-09-16 15:25:00 UTC) #15
Message was sent while issue was closed.
Committed patchset #11 (id:150001) manually as
44a04f18f9232c25e668b594ed6f21db54ca49cf (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698