mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-05 22:47:15 +03:00
Adds profiling script.
This commit is contained in:
parent
4a9bdc17f5
commit
78e575da2d
8
scripts/profile-build-times.sh
Executable file
8
scripts/profile-build-times.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user