mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
[debugger] IDEA-385233 Fix agent throttling settings
GitOrigin-RevId: 7d5acdab574fa760a1b4b1ce6d0ef8e396508203
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8dae702df9
commit
86cbfc0ee5
@@ -91,6 +91,9 @@ public final class CaptureConfigurable implements SearchableConfigurable, NoScro
|
||||
public @Nullable JComponent createComponent() {
|
||||
myConfigureAnnotationsButton.addActionListener(e -> new AsyncAnnotationsDialog(myProject).show());
|
||||
|
||||
myDebuggerAgent.addChangeListener(e -> setThrottlingCheckboxEnabled());
|
||||
setThrottlingCheckboxEnabled();
|
||||
|
||||
myTableModel = new MyTableModel();
|
||||
|
||||
boolean breakpointsEnabled = Registry.is("debugger.async.stacks.via.breakpoints", false);
|
||||
@@ -314,6 +317,10 @@ public final class CaptureConfigurable implements SearchableConfigurable, NoScro
|
||||
return myPanel;
|
||||
}
|
||||
|
||||
private void setThrottlingCheckboxEnabled() {
|
||||
myThrottling.setEnabled(myDebuggerAgent.isSelected());
|
||||
}
|
||||
|
||||
private StreamEx<CapturePoint> selectedCapturePoints(JBTable table) {
|
||||
return IntStreamEx.of(table.getSelectedRows()).map(table::convertRowIndexToModel).mapToObj(myTableModel::get);
|
||||
}
|
||||
|
||||
@@ -557,7 +557,7 @@ stepping.filter.real.thread.name=thread {0}
|
||||
debugger.variables.not.available.in.async=Variables are not available for async stack frames
|
||||
async.stack.throttled.frame.label=Async frames are omitted
|
||||
async.stack.throttled.frame.info=Async stack trace was not collected due to performance overhead. You can disable throttling in
|
||||
label.capture.configurable.throttling=Throttling
|
||||
label.capture.configurable.throttling=Throttle async stack traces collection on significant overhead
|
||||
exception=Exception
|
||||
ref=Ref
|
||||
thread.dump.during.previous.dump.evaluation.warning=Evaluation of the previous dump is still in progress. Java platform thread dump is taken.
|
||||
|
||||
Reference in New Issue
Block a user