winlin

add gperftools demo: heap check and profile, cpu profile

  1 +.PHONY: default clean
  2 +
  3 +default: cpu_profiler
  4 +
1 cpu_profiler: cpu_profiler.cc Makefile 5 cpu_profiler: cpu_profiler.cc Makefile
2 g++ -o cpu_profiler cpu_profiler.cc -g -O0 -ansi \ 6 g++ -o cpu_profiler cpu_profiler.cc -g -O0 -ansi \
3 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \ 7 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \
  1 +.PHONY: default clean
  2 +
  3 +default: heap_checker
  4 +
1 heap_checker: heap_checker.cc Makefile 5 heap_checker: heap_checker.cc Makefile
2 g++ -o heap_checker heap_checker.cc -g -O0 -ansi \ 6 g++ -o heap_checker heap_checker.cc -g -O0 -ansi \
3 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \ 7 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \
  1 +.PHONY: default clean
  2 +
  3 +default: heap_checker
  4 +
1 heap_profiler: heap_profiler.cc Makefile 5 heap_profiler: heap_profiler.cc Makefile
2 g++ -o heap_profiler heap_profiler.cc -g -O0 -ansi \ 6 g++ -o heap_profiler heap_profiler.cc -g -O0 -ansi \
3 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \ 7 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \