diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-21 14:42:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-21 14:42:17 +0300 |
commit | c66f0547024b54c1a944746e947328c4e7fa56ae (patch) | |
tree | c0e7e5997a07de68f3b6ee6e2848c0cd55c74c2c | |
parent | 8ccc285b2a571d9bad6f222221ccf5048daae9f6 (diff) | |
download | manaplus-c66f0547024b54c1a944746e947328c4e7fa56ae.tar.gz manaplus-c66f0547024b54c1a944746e947328c4e7fa56ae.tar.bz2 manaplus-c66f0547024b54c1a944746e947328c4e7fa56ae.tar.xz manaplus-c66f0547024b54c1a944746e947328c4e7fa56ae.zip |
Update profiling scripts.
-rwxr-xr-x | build/makegprof | 1 | ||||
-rwxr-xr-x | build/pmake | 19 |
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 \ |