RobertGummesson / BuildTimeAnalyzer-for-Xcode

Build Time Analyzer for Swift
MIT License
4.3k stars 260 forks source link

Not reflect true compile time per file #43

Open a-vlad opened 8 years ago

a-vlad commented 8 years ago

The flag used -debug-time-function-bodies only dumps function body times which can account for only a small subset of the total build time per file / for all swift files for some projects.

Would be better to add support for -debug-time-compilation flag which dumps total build time including its components on a per file basis.

Ref here for more flag info: https://bugs.swift.org/browse/SR-1788

Other option is use -driver-time-compilation recently added to fix above issue in this PR: https://github.com/apple/swift/pull/4367

RobertGummesson commented 8 years ago

Nice find, @a-vlad ! Will look into this. May need to get the standalone stuff working first though. Xcode 8 will soon be out of beta and I should have been further. :)

taglia3 commented 7 years ago

+1