IJPL-189392 samplePerformance - use strict ui dispatcher

GitOrigin-RevId: 62fbf312c5c48395fb2e9677fd46e9f7673e1d6a
This commit is contained in:
Vladimir Krivosheev
2025-06-13 16:13:21 +02:00
committed by intellij-monorepo-bot
parent 83e2c5e573
commit 9e632f35ea

View File

@@ -208,7 +208,7 @@ internal class PerformanceWatcherImpl(private val coroutineScope: CoroutineScope
}
jitWatcher.checkJitState()
LOG.trace("Scheduling EDT sample")
val latencyMs = withContext(Dispatchers.EDT + ModalityState.any().asContextElement()) {
val latencyMs = withContext(Dispatchers.ui(UiDispatcherKind.STRICT) + ModalityState.any().asContextElement()) {
LOG.trace("Processing EDT sample")
TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - current)
}