Wednesday 5 October 2016

Profiling your Swift compilation time


When I was going through my tweets, I saw one tweet about swift compiler below which seemed to be interesting to me.



I always interested to know and learn about compilers, debuggers and etc.
Here is the actual link swift-profiling about Profiling your Swift compilation time.

Briefly about that link, we can find the time compiler taking to compile our swift code.

xcodebuild -workspace App.xcworkspace -scheme App clean build 
OTHER_SWIFT_FLAGS="-Xfrontend -debug-time-function-bodies" | grep .[0-9]ms |
 grep -v ^0.[0-9]ms | sort -nr > culprits.txt