From e31214bac0b32bb765a15a8c7f2adda02dc947ff Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 19 Jan 2016 19:07:41 +0300 Subject: [PATCH] changed scheduleAtFixedRate() to scheduleWithFixedDelay() because the former is bad for hibernation --- .../src/com/intellij/diagnostic/PerformanceWatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/core-impl/src/com/intellij/diagnostic/PerformanceWatcher.java b/platform/core-impl/src/com/intellij/diagnostic/PerformanceWatcher.java index f5d0b15fb6db..52212972e218 100644 --- a/platform/core-impl/src/com/intellij/diagnostic/PerformanceWatcher.java +++ b/platform/core-impl/src/com/intellij/diagnostic/PerformanceWatcher.java @@ -92,7 +92,7 @@ public class PerformanceWatcher implements ApplicationComponent { + "-" + ApplicationInfo.getInstance().getBuild().asString()); myPublisher = ApplicationManager.getApplication().getMessageBus().syncPublisher(IdePerformanceListener.TOPIC); myThreadMXBean = ManagementFactory.getThreadMXBean(); - myThread = JobScheduler.getScheduler().scheduleAtFixedRate(new Runnable() { + myThread = JobScheduler.getScheduler().scheduleWithFixedDelay(new Runnable() { @Override public void run() { checkEDTResponsiveness();