Commit 662e6421 authored by Ivan Migalev's avatar Ivan Migalev Committed by intellij-monorepo-bot
Browse files

(IDEA-319716) Freeze reporter: do not log freeze if the registry is unavailable yet

(cherry picked from commit e8b6058dc024396b1ab9698ca129dfb32a35f222)

IJ-CR-107112

GitOrigin-RevId: 88caaec904090e988819f680ed7af6241e0d83be
parent 8bfc7052
Branches unavailable Tags unavailable
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -14,7 +14,7 @@ import com.intellij.openapi.diagnostic.IdeaLoggingEvent;
import com.intellij.openapi.extensions.ExtensionNotApplicableException;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.registry.RegistryManager;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.util.SmartList;
import com.intellij.util.concurrency.NonUrgentExecutor;
......@@ -260,7 +260,7 @@ final class IdeaFreezeReporter implements IdePerformanceListener {
return;
}
if (RegistryManager.getInstance().is("freeze.reporter.enabled")) {
if (Registry.is("freeze.reporter.enabled", false)) {
PerformanceWatcher performanceWatcher = PerformanceWatcher.getInstance();
if ((int)(durationMs / 1000) > FREEZE_THRESHOLD && !ContainerUtil.isEmpty(myStacktraceCommonPart)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment