Removed profiling from debug build

This commit is contained in:
Michaël Lemaire 2013-08-17 15:11:21 +02:00
parent 45646d47a2
commit 3acc0fe25d
2 changed files with 12 additions and 13 deletions

View file

@ -39,19 +39,18 @@ tests: all
LD_LIBRARY_PATH=${BUILDPATH} CK_DEFAULT_TIMEOUT=30 ${BUILDPATH}/paysages-tests LD_LIBRARY_PATH=${BUILDPATH} CK_DEFAULT_TIMEOUT=30 ${BUILDPATH}/paysages-tests
run_cli: all run_cli: all
LD_LIBRARY_PATH=${BUILDPATH} ${BUILDPATH}/paysages-cli LD_LIBRARY_PATH=${BUILDPATH} ${RUNNER} ${BUILDPATH}/paysages-cli
run_qt: all run: all
LD_LIBRARY_PATH=${BUILDPATH} ${BUILDPATH}/paysages-qt LD_LIBRARY_PATH=${BUILDPATH} ${RUNNER} ${BUILDPATH}/paysages-qt
profile: profile: debug
sudo opcontrol --setup --no-vmlinux --event=CPU_CLK_UNHALTED:3000000:0:1:1 --buffer-size=65536 --callgraph=5 --separate=none LD_LIBRARY_PATH=build/debug perf record -g fp ./build/debug/paysages-qt
sudo opcontrol --reset perf report -g
sudo opcontrol --start
LD_LIBRARY_PATH=${BUILDPATH} ${BUILDPATH}/paysages-qt || true profile_cli: debug
sudo opcontrol --shutdown LD_LIBRARY_PATH=build/debug perf record -g fp ./build/debug/paysages-cli
opannotate --source --output-dir=annotated ${BUILDPATH}/libpaysages.so --base-dirs=. --search-dirs=lib_paysages perf report -g
opreport -l ${BUILDPATH}/libpaysages.so -c -g | less
install:release install:release
mkdir -p ${DESTDIR}/usr/bin mkdir -p ${DESTDIR}/usr/bin

View file

@ -1,8 +1,8 @@
OBJECTS = ${SOURCES:%.c=${OBJPATH}/%.o} OBJECTS = ${SOURCES:%.c=${OBJPATH}/%.o}
ifeq (${BUILDMODE},debug) ifeq (${BUILDMODE},debug)
CC_FLAGS += -g -pg CC_FLAGS += -g
CC_LDFLAGS += -g -pg CC_LDFLAGS += -g
endif endif
ifeq (${BUILDMODE},release) ifeq (${BUILDMODE},release)
CC_FLAGS += -O3 -DNDEBUG -Wno-unused-variable -Wno-unused-but-set-variable CC_FLAGS += -O3 -DNDEBUG -Wno-unused-variable -Wno-unused-but-set-variable