Skip to content

Commit 2f63fc9

Browse files
committed
add working tcmalloc
1 parent 54f14c8 commit 2f63fc9

File tree

304 files changed

+80584
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

304 files changed

+80584
-0
lines changed

.gitignore

+82
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,88 @@ src/thirdparty/libedit-3.1/src/help.h
216216
src/thirdparty/libedit-3.1/src/vi.h
217217
src/thirdparty/libedit-3.1/stamp-h1
218218

219+
src/thirdparty/gperftools-2.0/.deps/
220+
src/thirdparty/gperftools-2.0/.libs/
221+
src/thirdparty/gperftools-2.0/Makefile
222+
src/thirdparty/gperftools-2.0/addressmap_unittest
223+
src/thirdparty/gperftools-2.0/atomicops_unittest
224+
src/thirdparty/gperftools-2.0/autom4te.cache/
225+
src/thirdparty/gperftools-2.0/config.status
226+
src/thirdparty/gperftools-2.0/current_allocated_bytes_test
227+
src/thirdparty/gperftools-2.0/debugallocation_test
228+
src/thirdparty/gperftools-2.0/debugallocation_test.sh
229+
src/thirdparty/gperftools-2.0/frag_unittest
230+
src/thirdparty/gperftools-2.0/getpc_test
231+
src/thirdparty/gperftools-2.0/heap-checker-death_unittest.sh
232+
src/thirdparty/gperftools-2.0/heap-checker_debug_unittest
233+
src/thirdparty/gperftools-2.0/heap-checker_debug_unittest.sh
234+
src/thirdparty/gperftools-2.0/heap-checker_unittest
235+
src/thirdparty/gperftools-2.0/heap-checker_unittest.sh
236+
src/thirdparty/gperftools-2.0/heap-profiler_debug_unittest
237+
src/thirdparty/gperftools-2.0/heap-profiler_debug_unittest.sh
238+
src/thirdparty/gperftools-2.0/heap-profiler_unittest
239+
src/thirdparty/gperftools-2.0/heap-profiler_unittest.sh
240+
src/thirdparty/gperftools-2.0/libprofiler.pc
241+
src/thirdparty/gperftools-2.0/libtcmalloc.pc
242+
src/thirdparty/gperftools-2.0/libtcmalloc_debug.pc
243+
src/thirdparty/gperftools-2.0/libtcmalloc_minimal.pc
244+
src/thirdparty/gperftools-2.0/libtcmalloc_minimal_debug.pc
245+
src/thirdparty/gperftools-2.0/libtool
246+
src/thirdparty/gperftools-2.0/low_level_alloc_unittest
247+
src/thirdparty/gperftools-2.0/malloc_extension_debug_test
248+
src/thirdparty/gperftools-2.0/malloc_extension_test
249+
src/thirdparty/gperftools-2.0/malloc_hook_test
250+
src/thirdparty/gperftools-2.0/markidle_unittest
251+
src/thirdparty/gperftools-2.0/memalign_debug_unittest
252+
src/thirdparty/gperftools-2.0/memalign_unittest
253+
src/thirdparty/gperftools-2.0/packed_cache_test
254+
src/thirdparty/gperftools-2.0/page_heap_test
255+
src/thirdparty/gperftools-2.0/pagemap_unittest
256+
src/thirdparty/gperftools-2.0/profile_handler_unittest
257+
src/thirdparty/gperftools-2.0/profiledata_unittest
258+
src/thirdparty/gperftools-2.0/profiler1_unittest
259+
src/thirdparty/gperftools-2.0/profiler2_unittest
260+
src/thirdparty/gperftools-2.0/profiler3_unittest
261+
src/thirdparty/gperftools-2.0/profiler4_unittest
262+
src/thirdparty/gperftools-2.0/profiler_unittest.sh
263+
src/thirdparty/gperftools-2.0/raw_printer_test
264+
src/thirdparty/gperftools-2.0/realloc_debug_unittest
265+
src/thirdparty/gperftools-2.0/realloc_unittest
266+
src/thirdparty/gperftools-2.0/sampler_debug_test
267+
src/thirdparty/gperftools-2.0/sampler_test
268+
src/thirdparty/gperftools-2.0/sampling_debug_test
269+
src/thirdparty/gperftools-2.0/sampling_debug_test.sh
270+
src/thirdparty/gperftools-2.0/sampling_test
271+
src/thirdparty/gperftools-2.0/sampling_test.sh
272+
src/thirdparty/gperftools-2.0/simple_compat_test
273+
src/thirdparty/gperftools-2.0/src/config.h
274+
src/thirdparty/gperftools-2.0/src/config.h.in~
275+
src/thirdparty/gperftools-2.0/src/gperftools/tcmalloc.h
276+
src/thirdparty/gperftools-2.0/src/stamp-h1
277+
src/thirdparty/gperftools-2.0/src/windows/gperftools/tcmalloc.h
278+
src/thirdparty/gperftools-2.0/stack_trace_table_test
279+
src/thirdparty/gperftools-2.0/stacktrace_unittest
280+
src/thirdparty/gperftools-2.0/system_alloc_unittest
281+
src/thirdparty/gperftools-2.0/tcmalloc_and_profiler_unittest
282+
src/thirdparty/gperftools-2.0/tcmalloc_both_unittest
283+
src/thirdparty/gperftools-2.0/tcmalloc_debug_unittest
284+
src/thirdparty/gperftools-2.0/tcmalloc_large_unittest
285+
src/thirdparty/gperftools-2.0/tcmalloc_minimal_debug_unittest
286+
src/thirdparty/gperftools-2.0/tcmalloc_minimal_large_unittest
287+
src/thirdparty/gperftools-2.0/tcmalloc_minimal_unittest
288+
src/thirdparty/gperftools-2.0/tcmalloc_unittest
289+
src/thirdparty/gperftools-2.0/test-driver
290+
src/thirdparty/gperftools-2.0/thread_dealloc_unittest
291+
src/thirdparty/gperftools-2.0/Makefile.in
292+
src/thirdparty/gperftools-2.0/aclocal.m4
293+
src/thirdparty/gperftools-2.0/configure
294+
src/thirdparty/gperftools-2.0/ltmain.sh
295+
src/thirdparty/gperftools-2.0/m4/libtool.m4
296+
src/thirdparty/gperftools-2.0/m4/ltoptions.m4
297+
src/thirdparty/gperftools-2.0/m4/ltversion.m4
298+
src/thirdparty/gperftools-2.0/m4/lt~obsolete.m4
299+
src/thirdparty/gperftools-2.0/src/config.h.in
300+
219301
# ignore generated protobufs
220302
generated_proto*/
221303

build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ EOF
114114

115115
build_thirdparty "protobuf-2.6.1" "libprotobuf.a"
116116
build_thirdparty "libedit-3.1" "libedit.a"
117+
build_thirdparty "gperftools-2.0" "libtcmalloc_minimal.so" "-fpermissive"
117118

118119
if [[ ! -f "./devtools/bin/vpc_linux" ]]; then
119120
pushd .

src/thirdparty/gperftools-2.0/AUTHORS

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
google-perftools@googlegroups.com
2+

src/thirdparty/gperftools-2.0/COPYING

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright (c) 2005, Google Inc.
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are
6+
met:
7+
8+
* Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
* Redistributions in binary form must reproduce the above
11+
copyright notice, this list of conditions and the following disclaimer
12+
in the documentation and/or other materials provided with the
13+
distribution.
14+
* Neither the name of Google Inc. nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)