perf(android): Defer SentryFrameMetricsCollector thread startup (#5641)
* perf(android): Start frame metrics thread lazily on first collection SentryFrameMetricsCollector created and started its HandlerThread in the constructor, blocking the calling thread (the main thread during SDK init) on HandlerThread.getLooper(). The handler is only needed once startCollection() registers a listener, so start the thread lazily there instead. Apps that never collect frame metrics no longer start the thread at all. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * changelog --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
N
Nelson Osacky committed
3859a2cc37716e2c8d9f149a0d94a1552f22c248
Parent: e279b06
Committed by GitHub <noreply@github.com>
on 6/30/2026, 9:58:42 AM