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:
Claude committed 2026-11-04 16:19:45 +00:00
1 parent 5b09f66a78
commit 35b4c44168
4 files changed
+24

No files matched your search

+1
View File
@@ -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 : ""
}
}