/xcpretty-profiler-formatter

xcpretty formatter that profiles compile times per file

Primary LanguageRubyMIT LicenseMIT

XCPretty Profiler Formatter

Custom formatter for xcpretty that calculates the compile time for files in Xcode projects and prints them to stdout.

Installation

Run:

gem install xcpretty-profiler-formatter

Usage

Specify xcpretty-profiler-formatter as a custom formatter to xcpretty:

#!/bin/bash

xcodebuild -project "Project.xcodeproj" clean build | xcpretty -f `xcpretty-profiler-formatter`

Sample output

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

Author