cpisciotta / xcbeautify

A little beautifier tool for xcodebuild
MIT License
957 stars 68 forks source link

[New Output] Build Timing Summary #244

Open MattFoley opened 8 months ago

MattFoley commented 8 months ago

What's the uncaptured output?

Build Timing Summary

CompileC (2 tasks) | 0.078 seconds

RegisterExecutionPolicyException (1 task) | 0.008 seconds

WriteAuxiliaryFile (10 tasks) | 0.005 seconds

ProcessInfoPlistFile (1 task) | 0.004 seconds

Libtool (1 task) | 0.002 seconds

Touch (1 task) | 0.001 seconds

CpHeader (1 task) | 0.001 seconds

Copy (1 task) | 0.001 seconds

BUILD SUCCEEDED

Suggested Regex

(Build Timing Summary[\s\S])** BUILD SUCCEEDED *\

Suggested Output

You could just output the capture group above as one output using your standard line formatter. It's short, and could be very helpful.

Additional Context

It would be really helpful for monitoring build performance, right now these lines are not output by xcbeautify. These lines are added when passing "-showBuildTimingSummary" to xcodebuild

cpisciotta commented 7 months ago

Hey @MattFoley! Thanks for filling this. I'm working to release version 2.0.0 (expected this week). After 2.0.0, I plan to refactor the read logic, so xcbeautify can better capture multiline output like this. I'll keep you updated!

In the meantime, you might find it helpful to pass the --preserve-unbeautified flag.