DescriptionUse 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 #
Messages
Total messages: 15 (7 generated)
|