mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
slow_methods.sh output methods that are slow to compile
This commit is contained in:
1 parent
a7d2c1137c
commit
7d6fcda03e
1 file changed
+10
Executable
+10
@@ -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
|
||||
Reference in new issue
Block a user