From 78732f60e84a8e88aef19e9c0a48721e4fa4d7ff Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 26 Jan 2014 16:12:22 -0500 Subject: [PATCH] Makefile.am,debug/build.sh,release/build.sh : Added note on using gprof --- Makefile.am | 5 ++++- build/linux/debug/build.sh | 7 ++++++- build/linux/release/build.sh | 7 ++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 6dea2a5..da66bb8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,10 @@ lib_LTLIBRARIES = bin_PROGRAMS = include_HEADERS = - +# To Profile w/ gprof: +# 1) Modify configure: ./configure --disable-shared CFLAGS="-pg" +# 2) Run the program. ./foo +# 3) Run gprof /libtool --mode=execute gprof ./foo # C compiler flags # _GNU_SOURCE - turns on GNU specific extensions and gives correct prototype for double log2(double) diff --git a/build/linux/debug/build.sh b/build/linux/debug/build.sh index d53c3ad..7b2f759 100755 --- a/build/linux/debug/build.sh +++ b/build/linux/debug/build.sh @@ -7,6 +7,11 @@ autoreconf --force --install cd ${curdir} +# To Profile w/ gprof: +# 1) Modify configure: ./configure --disable-shared CFLAGS="-pg" +# 2) Run the program. ./foo +# 3) Run gprof /libtool --mode=execute gprof ./foo + ../../../configure --prefix=${curdir} \ --enable-debug \ CFLAGS="-g -Wall" \ @@ -17,4 +22,4 @@ LIBS= #make -#make install \ No newline at end of file +#make install diff --git a/build/linux/release/build.sh b/build/linux/release/build.sh index d1e4027..768adea 100755 --- a/build/linux/release/build.sh +++ b/build/linux/release/build.sh @@ -7,6 +7,11 @@ autoreconf --force --install cd ${curdir} +# To Profile w/ gprof: +# 1) Modify configure: ./configure --disable-shared CFLAGS="-pg" +# 2) Run the program. ./foo +# 3) Run gprof /libtool --mode=execute gprof ./foo + ../../../configure --prefix=${curdir} \ CFLAGS="-Wall" \ CXXFLAGS="-Wall" \ @@ -16,4 +21,4 @@ LIBS= #make -#make install \ No newline at end of file +#make install