From ee7fafe4657f600d2d9d75a73960f1aa7140b47a Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 6 Mar 2014 16:48:39 +0800 Subject: [PATCH] add gperftools demo: heap check and profile, cpu profile --- trunk/research/gperftools/cpu-profiler/Makefile | 4 ++++ trunk/research/gperftools/heap-checker/Makefile | 4 ++++ trunk/research/gperftools/heap-profiler/Makefile | 4 ++++ 3 files changed, 12 insertions(+) mode change 100644 => 100755 trunk/research/gperftools/cpu-profiler/Makefile diff --git a/trunk/research/gperftools/cpu-profiler/Makefile b/trunk/research/gperftools/cpu-profiler/Makefile old mode 100644 new mode 100755 index a104b04b0..ea52b3126 --- a/trunk/research/gperftools/cpu-profiler/Makefile +++ b/trunk/research/gperftools/cpu-profiler/Makefile @@ -1,3 +1,7 @@ +.PHONY: default clean + +default: cpu_profiler + cpu_profiler: cpu_profiler.cc Makefile g++ -o cpu_profiler cpu_profiler.cc -g -O0 -ansi \ -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \ diff --git a/trunk/research/gperftools/heap-checker/Makefile b/trunk/research/gperftools/heap-checker/Makefile index 4f3c86694..b0dfda71d 100644 --- a/trunk/research/gperftools/heap-checker/Makefile +++ b/trunk/research/gperftools/heap-checker/Makefile @@ -1,3 +1,7 @@ +.PHONY: default clean + +default: heap_checker + heap_checker: heap_checker.cc Makefile g++ -o heap_checker heap_checker.cc -g -O0 -ansi \ -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \ diff --git a/trunk/research/gperftools/heap-profiler/Makefile b/trunk/research/gperftools/heap-profiler/Makefile index 39cc156c9..89a70f6e5 100644 --- a/trunk/research/gperftools/heap-profiler/Makefile +++ b/trunk/research/gperftools/heap-profiler/Makefile @@ -1,3 +1,7 @@ +.PHONY: default clean + +default: heap_checker + heap_profiler: heap_profiler.cc Makefile g++ -o heap_profiler heap_profiler.cc -g -O0 -ansi \ -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \