From 7d6fcda03e44fe59402fa6eba04103f1ed8869ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 7 Aug 2016 15:26:18 +0200 Subject: [PATCH] slow_methods.sh output methods that are slow to compile --- slow_methods.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 slow_methods.sh diff --git a/slow_methods.sh b/slow_methods.sh new file mode 100755 index 000000000..ca4921985 --- /dev/null +++ b/slow_methods.sh @@ -0,0 +1,10 @@ +#/bin/sh +# +# Outputs the compilation time of all methods. +# To get the 20 slowest methods, run ./slow_methods.sh | head -20 +set -e + +PROJECT=GRDB.xcodeproj +TARGET=GRDBiOS + +OTHER_SWIFT_FLAGS='-Xfrontend -debug-time-function-bodies' xcodebuild -project $PROJECT -target $TARGET 2>&1 clean build | grep '^[0-9][0-9.]*.*\t' | sort -nr