Skip to content

Commit 46a6241

Browse files
committed
Fix #4: scripts not working on some shells
1 parent 0ade1fe commit 46a6241

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ xcodebuild -destination 'platform=iOS Simulator,name=iPhone 8' \
5757
clean build \
5858
OTHER_SWIFT_FLAGS="-driver-time-compilation \
5959
-Xfrontend -debug-time-function-bodies \
60-
-Xfrontend -debug-time-compilation" |
60+
-Xfrontend -debug-time-compilation" | \
6161
tee profile.log
6262
```
6363

@@ -66,12 +66,12 @@ tee profile.log
6666
Then extract the interesting statistics using:
6767

6868
```sh
69-
awk '/Driver Compilation Time/,/Total$/ { print }' profile.log |
70-
grep compile |
71-
cut -c 55- |
72-
sed -e 's/^ *//;s/ (.*%) compile / /;s/ [^ ]*Bridging-Header.h$//' |
73-
sed -e "s|$(pwd)/||" |
74-
sort -rn |
69+
awk '/Driver Compilation Time/,/Total$/ { print }' profile.log | \
70+
grep compile | \
71+
cut -c 55- | \
72+
sed -e 's/^ *//;s/ (.*%) compile / /;s/ [^ ]*Bridging-Header.h$//' | \
73+
sed -e "s|$(pwd)/||" | \
74+
sort -rn | \
7575
tee slowest.log
7676
```
7777

0 commit comments

Comments
 (0)