Custom formatter for xcpretty that calculates the compile time for files in Xcode projects and prints them to stdout
.
Run:
gem install xcpretty-profiler-formatter
Specify xcpretty-profiler-formatter
as a custom formatter to xcpretty
:
#!/bin/bash
xcodebuild -project "Project.xcodeproj" clean build | xcpretty -f `xcpretty-profiler-formatter`
xcodebuild -workspace BrightFutures.xcworkspace -scheme BrightFutures-iOS clean build | xcpretty -f `xcpretty-profiler-formatter`
[...]
[0.2616] Source/BrightFutures/BrightFutures/Async.swift
[1.0931] Source/BrightFutures/Carthage/Checkouts/Result/Result/ResultType.swift
[1.1641] Source/BrightFutures/BrightFutures/Errors.swift
[1.1724] Source/BrightFutures/BrightFutures/Errors.swift
[1.7121] Source/BrightFutures/Carthage/Checkouts/Result/Result/ResultType.swift
-----
[7.4310] Total compilation time
- Lars Lockefeer (@larslockefeer)