所以我正處于我的 iOS SwiftUI 應用程式的階段,我正在檢查并檢查以提高性能等,是否有任何工具或任何方法可以讓我跟蹤View加載時間并將它們列印出來?
例子:
struct ContinueWithGoogleView: View {
var body: some View {
GoogleSignInButton()
.accessibilityIdentifier("GoogleSignInButton")
.accessibility(hint: Text("Sign in with Google button."))
}
}
ContinueWithGoogleView()采取9.27364ms加載視圖等..
uj5u.com熱心網友回復:
您可以使用 Xcode Profile 進行這些操作。這里有一個很好的指南。
Time Profiler就是你要找的。
我建議您查看 XCode Instruments 的不同行程,這些行程將開發您的應用程式,例如分配和控制記憶體泄漏
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/518621.html
標籤:迅速迅捷
上一篇:如何從資料中讀取以空結尾的字串?
