Qt: log icon and window timings to find the icon lag on the phone
Each icon request logs its key and how long it took (ultra.icon), each icon logs when it shows, and the app state, scene graph and first frames are logged too, so logcat shows where the time goes when icons appear late. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiQsCq11CwCPnKPp9D
This commit is contained in:
4 files changed
+24
No files matched your search
@@ -25,6 +25,7 @@ Item {
|
||||
mipmap: true
|
||||
sourceSize.width: Math.ceil(root.size * Screen.devicePixelRatio)
|
||||
sourceSize.height: Math.ceil(root.size * Screen.devicePixelRatio)
|
||||
onStatusChanged: if (status === Image.Ready || status === Image.Error) console.info("ultra.icon shown", root.key, status === Image.Ready)
|
||||
source: root.key ? "image://icon/" + encodeURIComponent(root.key) + "?" + root.generation : ""
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user