Skip to content

Instantly share code, notes, and snippets.

@artem-sherbachuk
Created November 15, 2016 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artem-sherbachuk/371bd8a28e0902c76ea721ddac45219c to your computer and use it in GitHub Desktop.
Save artem-sherbachuk/371bd8a28e0902c76ea721ddac45219c to your computer and use it in GitHub Desktop.
Profiling compilation time of most expensivest func in swift
# Clean and build, capturing only lines containing `X.Yms` where X > 0, sorting from largest to smallest
# http://irace.me/swift-profiling
xcodebuild -workspace App.xcworkspace -scheme App clean build | grep [1-9].[0-9]ms | sort -nr > culprits.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment