diff --git a/src/share/classes/jdk/jfr/Recording.java b/src/share/classes/jdk/jfr/Recording.java index 26db88cf80c851fe2b6aa8067ff5acfb60d11c30..cfb1d8bb1f65dd995e7f01c1d3153b4301b4666a 100644 --- a/src/share/classes/jdk/jfr/Recording.java +++ b/src/share/classes/jdk/jfr/Recording.java @@ -54,7 +54,7 @@ import jdk.jfr.internal.WriteableUserPath; * System.gc(); * Thread.sleep(5000); * r.stop(); - * r.copyTo(Files.createTempFile("my-recording", ".jfr")); + * r.dump(Files.createTempFile("my-recording", ".jfr")); * * *