Permalink
Browse files

Merge pull request #8 from fastred/missing-back-slashes

Fix #4: scripts not working on some shells
  • Loading branch information...
fastred committed Nov 13, 2017
2 parents a5c9b8b + 46a6241 commit dc6dd032ca827abe1ffa8f82e258d90d2b1b2c59
Showing with 7 additions and 7 deletions.
  1. +7 −7 README.md
View
@@ -58,7 +58,7 @@ xcodebuild -destination 'platform=iOS Simulator,name=iPhone 8' \
clean build \
OTHER_SWIFT_FLAGS="-driver-time-compilation \
-Xfrontend -debug-time-function-bodies \
-Xfrontend -debug-time-compilation" |
-Xfrontend -debug-time-compilation" | \
tee profile.log
```
@@ -67,12 +67,12 @@ tee profile.log
Then extract the interesting statistics using:
```sh
awk '/Driver Compilation Time/,/Total$/ { print }' profile.log |
grep compile |
cut -c 55- |
sed -e 's/^ *//;s/ (.*%) compile / /;s/ [^ ]*Bridging-Header.h$//' |
sed -e "s|$(pwd)/||" |
sort -rn |
awk '/Driver Compilation Time/,/Total$/ { print }' profile.log | \
grep compile | \
cut -c 55- | \
sed -e 's/^ *//;s/ (.*%) compile / /;s/ [^ ]*Bridging-Header.h$//' | \
sed -e "s|$(pwd)/||" | \
sort -rn | \
tee slowest.log
```

0 comments on commit dc6dd03

Please sign in to comment.