From 77797a786056a0e8a9abd95f7350546829ac8bea Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sat, 17 May 2014 21:06:58 +0200 Subject: Various compilation and profiling experiments. --- tagstats/Makefile | 8 +++++--- tagstats/test_tagstats.sh | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'tagstats') diff --git a/tagstats/Makefile b/tagstats/Makefile index baea40c..0358a67 100644 --- a/tagstats/Makefile +++ b/tagstats/Makefile @@ -12,11 +12,13 @@ # directory where Osmium is. # CXXFLAGS - Extra compiler flags. # LDFLAGS - Extra linker flags. -# +# #------------------------------------------------------------------------------ CXXFLAGS += -O3 #CXXFLAGS += -g +#CXXFLAGS += -g -pg +#CXXFLAGS += -g -fprofile-arcs -ftest-coverage CXXFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 CXXFLAGS += `../bin/taginfo-config.rb tagstats.cxxflags` @@ -35,7 +37,7 @@ CXXFLAGS_FEATURES += -DTAGSTATS_GEODISTRIBUTION_INCLUDE=$(BYID_INCL) CXXFLAGS_WARNINGS := -Wall -Wextra -Wredundant-decls -Wdisabled-optimization -pedantic LIB_EXPAT := -lexpat -LIB_PBF := -lz -lpthread -lprotobuf-lite -losmpbf +LIB_PBF := -pthread -lz -lprotobuf-lite -losmpbf LIB_GD := -lgd -lz -lm LIB_SQLITE := -lsqlite3 @@ -59,5 +61,5 @@ install: install -m 755 tagstats ../sources/db/tagstats clean: - rm -f *.o core tagstats osmstats + rm -f *.o *.gcno *.gcda *.gcov gmon.out core tagstats osmstats diff --git a/tagstats/test_tagstats.sh b/tagstats/test_tagstats.sh index be0a2ac..8864598 100755 --- a/tagstats/test_tagstats.sh +++ b/tagstats/test_tagstats.sh @@ -28,5 +28,6 @@ else selection_option="" fi +#valgrind --leak-check=full --show-reachable=yes ./tagstats $selection_option --min-tag-combination-count=100 $IMAGE_OPTIONS $OSMFILE $DATABASE -- cgit v1.2.3