![]() -Xfrontend -debug-time-compilation - timers for each phase of frontend job execution.-driver-time-compilation - high-level timing of the jobs that the driver executes.The Swift compiler has a variety of built-in diagnostic options you can use to profile the build. Now you know the code Swift compiler has problems with and can come up with some improvements. -Xfrontend -warn-long-expression-type-checking=100.-Xfrontend -warn-long-function-bodies=100.With these flags enabled Xcode will generate a warning for any function or expression that took longer than 100ms to type-check: If Swift compile time is the bottleneck, we can get more information by setting Other Swift Flags from the Xcode build settings. PhaseScriptExecution (14 tasks) | 18.089 secondsĬompileSwiftSources (1 task) | 1.245 seconds Xcodebuild -project 'Kickstarter.xcodeproj' \īuild | sed -n -e '/Build Timing Summary/,$p' ![]() We can update a timestamp using touch then: touch KsApi/mutations/CancelBackingMutation.swift
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |