Skip to content

Commit 08219fa

Browse files
committed
re-use jfrStopRecording()
1 parent 17affab commit 08219fa

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

visualvm/jfr/src/org/graalvm/visualvm/jfr/impl/JFRRecordingProvider.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,7 @@ public void run() {
168168
if (openView) {
169169
DataSourceWindowManager.sharedInstance().openDataSource(jfrDump);
170170
}
171-
if (stopJfr) {
172-
jvm.stopJfrRecording();
173-
Set<DataSource> ds = ActionUtils.getSelectedDataSources();
174-
JFRDumpAction.instance().updateState(ds);
175-
JFRStartAction.instance().updateState(ds);
176-
JFRStopAction.instance().updateState(ds);
177-
}
171+
if (stopJfr) jfrStopRecording(application);
178172
} else {
179173
notifyJfrDumpFailed(application);
180174
}

0 commit comments

Comments
 (0)