summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-21 14:42:17 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-21 14:42:17 +0300
commitc66f0547024b54c1a944746e947328c4e7fa56ae (patch)
treec0e7e5997a07de68f3b6ee6e2848c0cd55c74c2c
parent8ccc285b2a571d9bad6f222221ccf5048daae9f6 (diff)
downloadplus-c66f0547024b54c1a944746e947328c4e7fa56ae.tar.gz
plus-c66f0547024b54c1a944746e947328c4e7fa56ae.tar.bz2
plus-c66f0547024b54c1a944746e947328c4e7fa56ae.tar.xz
plus-c66f0547024b54c1a944746e947328c4e7fa56ae.zip
Update profiling scripts.
-rwxr-xr-xbuild/makegprof1
-rwxr-xr-xbuild/pmake19
2 files changed, 2 insertions, 18 deletions
diff --git a/build/makegprof b/build/makegprof
index d408bf0d3..bfe6922d7 100755
--- a/build/makegprof
+++ b/build/makegprof
@@ -2,5 +2,6 @@
mv ../run/gmon.out .
gprof ../run/bin/manaplus >gprof.txt
+gprof --inline-file-names ../run/bin/manaplus >gprofi.txt
cat gprof.txt | gprof2dot.py >gprof.dot
cat gprof.dot | dot -Tpng -o gprof.png
diff --git a/build/pmake b/build/pmake
index eb44c0454..c124d79ab 100755
--- a/build/pmake
+++ b/build/pmake
@@ -9,24 +9,7 @@ export CXX=g++-5
export LANG=C
-export CXXFLAGS="-pg -fno-inline -Wvariadic-macros -Wvla -Wredundant-decls \
--fno-omit-frame-pointer -Wpacked-bitfield-compat -Wtrampolines \
--Wsuggest-attribute=noreturn -Wunused -Wstrict-aliasing=2 \
--fstrict-aliasing -Wunreachable-code -Wabi -Wdisabled-optimization \
--Wvolatile-register-var -Winvalid-pch -Wredundant-decls \
--Wnormalized=nfkc -Wmissing-format-attribute -Wmissing-noreturn \
--Wswitch-default -Wsign-promo -Waddress -Wmissing-declarations \
--Wctor-dtor-privacy -Wstrict-null-sentinel -Wlogical-op \
--Wcast-align -Wpointer-arith -Wundef \
--Wmissing-include-dirs -Winit-self -pedantic -Wall -ggdb3 -O2 -pipe \
--Wpacked -Wextra -Wstrict-overflow=1 -Wunknown-pragmas -Wwrite-strings \
--Wstack-protector -Wshadow -Wunused-macros -Wsynth \
--Wbuiltin-macro-redefined -Wctor-dtor-privacy -Wdeprecated -Wextra \
--Wendif-labels -Wformat=1 -Wimport -Wnon-virtual-dtor -Wpsabi \
--Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wc++11-compat -std=c++0x \
--Wdelete-non-virtual-dtor -Wmaybe-uninitialized -Wunused-local-typedefs \
--Wvector-operation-performance -Wfree-nonheap-object -Winvalid-memory-model \
--Wnarrowing -Wzero-as-null-pointer-constant -funsafe-loop-optimizations"
+export CXXFLAGS="-g -pg -fno-inline -fno-omit-frame-pointer"
autoreconf -i
./configure --prefix=$dir/run \