diff options
author | Jochen Topf <jochen@topf.org> | 2014-05-17 21:06:58 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-05-17 21:06:58 +0200 |
commit | 77797a786056a0e8a9abd95f7350546829ac8bea (patch) | |
tree | bd261bc2bb0b06023ba614c19ebfbb28e5ca070d /tagstats | |
parent | b8d19f17c655441b8e600ee73f122655249bbebf (diff) | |
download | taginfo-77797a786056a0e8a9abd95f7350546829ac8bea.tar taginfo-77797a786056a0e8a9abd95f7350546829ac8bea.tar.gz |
Various compilation and profiling experiments.
Diffstat (limited to 'tagstats')
-rw-r--r-- | tagstats/Makefile | 8 | ||||
-rwxr-xr-x | tagstats/test_tagstats.sh | 1 |
2 files changed, 6 insertions, 3 deletions
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 |