mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't dump threads every single second when UNRESPONSIVE_THRESHOLD_SECONDS is 1 (IDEA-156259)
This commit is contained in:
@@ -206,7 +206,7 @@ public class PerformanceWatcher implements ApplicationComponent {
|
||||
}
|
||||
|
||||
long sinceLastEdt = millis - myLastAliveEdt;
|
||||
if (sinceLastEdt >= UNRESPONSIVE_THRESHOLD_SECONDS * 1000) {
|
||||
if (sinceLastEdt >= UNRESPONSIVE_THRESHOLD_SECONDS * 1000 + 10) {
|
||||
edtFrozen(millis);
|
||||
}
|
||||
else if (sinceLastEdt <= SAMPLING_INTERVAL_MS) {
|
||||
|
||||
Reference in New Issue
Block a user