slow_methods.sh output methods that are slow to compile

This commit is contained in:
Gwendal Roué committed 2016-08-07 15:26:18 +02:00
1 parent a7d2c1137c
commit 7d6fcda03e
1 file changed
+10
+10
View File
@@ -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