add gperftools demo: heap check and profile, cpu profile
This commit is contained in:
parent
9896842b05
commit
ee7fafe465
4
trunk/research/gperftools/cpu-profiler/Makefile
Normal file → Executable file
4
trunk/research/gperftools/cpu-profiler/Makefile
Normal file → Executable file
|
|
@ -1,3 +1,7 @@
|
||||||
|
.PHONY: default clean
|
||||||
|
|
||||||
|
default: cpu_profiler
|
||||||
|
|
||||||
cpu_profiler: cpu_profiler.cc Makefile
|
cpu_profiler: cpu_profiler.cc Makefile
|
||||||
g++ -o cpu_profiler cpu_profiler.cc -g -O0 -ansi \
|
g++ -o cpu_profiler cpu_profiler.cc -g -O0 -ansi \
|
||||||
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \
|
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
.PHONY: default clean
|
||||||
|
|
||||||
|
default: heap_checker
|
||||||
|
|
||||||
heap_checker: heap_checker.cc Makefile
|
heap_checker: heap_checker.cc Makefile
|
||||||
g++ -o heap_checker heap_checker.cc -g -O0 -ansi \
|
g++ -o heap_checker heap_checker.cc -g -O0 -ansi \
|
||||||
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \
|
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
.PHONY: default clean
|
||||||
|
|
||||||
|
default: heap_checker
|
||||||
|
|
||||||
heap_profiler: heap_profiler.cc Makefile
|
heap_profiler: heap_profiler.cc Makefile
|
||||||
g++ -o heap_profiler heap_profiler.cc -g -O0 -ansi \
|
g++ -o heap_profiler heap_profiler.cc -g -O0 -ansi \
|
||||||
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \
|
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user