mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
IJPL-189392 samplePerformance - use strict ui dispatcher
GitOrigin-RevId: 62fbf312c5c48395fb2e9677fd46e9f7673e1d6a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
83e2c5e573
commit
9e632f35ea
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user