8313710: jcmd: typo in the documentation of JFR.start and JFR.dump

Reviewed-by: dholmes, egahlin
This commit is contained in:
Taizo Kurashige 2024-02-27 10:39:48 +00:00 committed by Erik Gahlin
parent 60cbf29250
commit 16d917a85f
2 changed files with 103 additions and 103 deletions

View File

@ -201,8 +201,8 @@ final class DCmdDump extends AbstractDCmd {
Options:
begin (Optional) Specify the time from which recording data will be included
in the dump file. The format is specified as local time.
begin (Optional) Specify the time from which recording data will be
included in the dump file. The format is specified as local time.
(STRING, no default value)
end (Optional) Specify the time to which recording data will be included
@ -248,7 +248,7 @@ final class DCmdDump extends AbstractDCmd {
name (Optional) Name of the recording. If no name is given, data from all
recordings is dumped. (STRING, no default value)
path-to-gc-root (Optional) Flag for saving the path to garbage collection (GC) roots
path-to-gc-roots (Optional) Flag for saving the path to garbage collection (GC) roots
at the time the recording data is dumped. The path information is
useful for finding memory leaks but collecting it can cause the
application to pause for a short period of time. Turn on this flag
@ -265,7 +265,7 @@ final class DCmdDump extends AbstractDCmd {
$ jcmd <pid> JFR.dump name=1 filename=%s
$ jcmd <pid> JFR.dump maxage=1h
$ jcmd <pid> JFR.dump maxage=1h maxsize=50M
$ jcmd <pid> JFR.dump fillename=leaks.jfr path-to-gc-root=true
$ jcmd <pid> JFR.dump filename=leaks.jfr path-to-gc-roots=true
$ jcmd <pid> JFR.dump begin=13:15
$ jcmd <pid> JFR.dump begin=13:15 end=21:30:00
$ jcmd <pid> JFR.dump end=18:00 maxage=10m

View File

@ -373,7 +373,7 @@ final class DCmdStart extends AbstractDCmd {
the response to the command so that you can use it with other
commands. (STRING, system-generated default name)
path-to-gc-root (Optional) Flag for saving the path to garbage collection (GC)
path-to-gc-roots (Optional) Flag for saving the path to garbage collection (GC)
roots at the end of a recording. The path information is useful
for finding memory leaks but collecting it is time consuming.
Turn on this flag only when you have an application that you