only report Freezes with the default JB reporter

GitOrigin-RevId: adda584f42555605a15b2e5aebca80692208a52c
This commit is contained in:
Egor Ushakov
2019-07-05 16:07:22 +03:00
committed by intellij-monorepo-bot
parent 7798439859
commit f0929301c5
@@ -17,10 +17,7 @@ import org.jetbrains.annotations.Nullable;
import java.io.File;
import java.lang.management.ThreadInfo;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import java.util.*;
public class IdeaFreezeReporter {
private static final int FREEZE_THRESHOLD = ApplicationManager.getApplication().isInternal() ? 5 : 25; // seconds
@@ -38,7 +35,10 @@ public class IdeaFreezeReporter {
@Override
public void uiFreezeStarted() {
myFreezeRecording = Registry.is("performance.watcher.freeze.report") && !DebugAttachDetector.isAttached();
myFreezeRecording = Registry.is("performance.watcher.freeze.report") &&
// only report to JetBrains
IdeErrorsDialog.getSubmitter(new Freeze(Collections.emptyList()), null) instanceof ITNReporter &&
!DebugAttachDetector.isAttached();
}
@Override