Adds profiling script.

This commit is contained in:
Krunoslav Zaher 2016-12-17 15:04:20 +01:00
parent 4a9bdc17f5
commit 78e575da2d

8
scripts/profile-build-times.sh Executable file
View File

@ -0,0 +1,8 @@
set -oe pipefail
mkdir -p build
xcodebuild -workspace Rx.xcworkspace -scheme RxSwift-iOS -configuration Debug -destination "name=iPhone 7" clean test OTHER_SWIFT_FLAGS="-Xfrontend -debug-time-function-bodies" \
| tee build/output \
| grep .[0-9]ms \
| grep -v ^0.[0-9]ms \
| sort -nr > build/build-times.txt \
&& cat build/build-times.txt | less