mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
changed scheduleAtFixedRate() to scheduleWithFixedDelay() because the former is bad for hibernation
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user