Print recording is ready in Sample.java
This commit is contained in:
Родитель
c130baa1c3
Коммит
258bf5567b
|
@ -50,6 +50,7 @@ public class Sample {
|
|||
recording.stop();
|
||||
|
||||
recording.dump(Paths.get(System.getProperty("user.dir"), "recording.jfr").toString());
|
||||
System.out.println("JFR recording ready: recording.jfr");
|
||||
}
|
||||
} catch (InstanceNotFoundException | IOException | JfrStreamingException | InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
|
|
|
@ -25,6 +25,7 @@ public class Sample {
|
|||
recording.stop();
|
||||
|
||||
recording.dump(Paths.get(System.getProperty("user.dir"), "recording.jfr").toString());
|
||||
System.out.println("JFR recording ready: recording.jfr");
|
||||
}
|
||||
} catch (InstanceNotFoundException | IOException | JfrStreamingException | InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
|
|
Загрузка…
Ссылка в новой задаче