Skip to content

Commit 3bb9c3a

Browse files
committed
Use TCMalloc
1 parent 4ef9103 commit 3bb9c3a

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ before_install:
1616
- sudo apt-add-repository -y ppa:chris-lea/protobuf
1717
- sudo apt-add-repository -y ppa:asolovets/backports
1818
- sudo apt-get update -qq
19-
- sudo apt-get install -qq openssl libssl-dev autoconf automake protobuf-compiler libprotobuf-java libprotobuf-dev python-dev libjson-c-dev libgoogle-glog-dev libgflags-dev libldns-dev libstdc++-4.8-dev libleveldb-dev libsnappy-dev
19+
- sudo apt-get install -qq openssl libssl-dev autoconf automake protobuf-compiler libprotobuf-java libprotobuf-dev python-dev libjson-c-dev libgoogle-glog-dev libgflags-dev libldns-dev libstdc++-4.8-dev libleveldb-dev libsnappy-dev libgoogle-perftools-dev
2020
# Stupid frikkin' google-mock package on Precise is b0rked, so hack it up:
2121
- wget https://googlemock.googlecode.com/files/gmock-1.7.0.zip -O /tmp/gmock-1.7.0.zip
2222
- unzip -d /tmp /tmp/gmock-1.7.0.zip

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN apt-get update && \
1717
libjson-c2 \
1818
libleveldb1 \
1919
libsnappy1 \
20+
libgoogle-perftools4 \
2021
libldns1 \
2122
libprotobuf8
2223
RUN update-ca-certificates && \

Dockerfile-ct-mirror

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN apt-get update && \
1616
libjson-c2 \
1717
libleveldb1 \
1818
libsnappy1 \
19+
libgoogle-perftools4 \
1920
libldns1 \
2021
libprotobuf8
2122
RUN groupadd -r ctlog && useradd -r -g ctlog ctlog

configure.ac

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ AS_IF([test -n "$missing_libevent"],
9696
[AC_MSG_ERROR([could not find the libevent libraries])])
9797
LIBS="$save_LIBS"
9898

99+
# TCMalloc gubbins
100+
AC_ARG_WITH([tcmalloc],
101+
[AS_HELP_STRING([--without-tcmalloc],
102+
[disable tcmalloc for memory allocations])],
103+
[],
104+
[with_tcmalloc=yes])
105+
AS_IF([test "x$with_tcmalloc" != xno],
106+
[AC_CHECK_LIB([tcmalloc], [malloc],,
107+
[AC_MSG_FAILURE([no tcmalloc found (use --without-tcmalloc to disable)])])])
108+
99109
# Checks for typedefs, structures, and compiler characteristics.
100110
AC_TYPE_INT32_T
101111
AC_TYPE_INT64_T

0 commit comments

Comments
 (0)