On Wed, 19 Jan 2022 02:42:13 GMT, Yi Yang <yy...@openjdk.org> wrote:

> > It seems it would be useful to support the verbose output with just a 
> > single class that is specified, although that would suggest that the dcmd 
> > name should then be something other than `VM.classes`.
> 
> This is a good idea, but `jcmd VM.classes verbose=XX` looks strange, `jcmd 
> VM.class XX` is also not much proper, because we desire to print all classes 
> in default(`jcmd VM.class`). an alternative is to use `jcmd VM.classes 
> verbose | grep XX` currently.

I was thinking the syntax would look like:  `jcmd VM.classes [verbose 
[classname]]`

Your grep solution doesn't work because each class has multiple lines of output.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7105

Reply via email to