From c66f0547024b54c1a944746e947328c4e7fa56ae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 May 2015 14:42:17 +0300 Subject: Update profiling scripts. --- build/makegprof | 1 + 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 \ -- cgit v1.2.3-60-g2f50