gctoolkit
gctoolkit copied to clipboard
AbstractJavaVirtualMachine.getCommandLine() is currently stubbed out, can't retrieve CLI parameters for Pre-Unified log.
Describe the bug The getCommandLine() method has been stubbed out with a TODO. See https://github.com/microsoft/gctoolkit/blob/1476fc128465991f2c531645c780d3ed7c865f2c/api/src/main/java/com/microsoft/gctoolkit/jvm/AbstractJavaVirtualMachine.java#L84
Expected behavior Expected this method, or child override in PreUnifiedJavaVirtualMachine to return the command line string from a Pre-Unified log file.
Additional context There is a pending issue for building the Command Line args for Unified logging here: https://github.com/microsoft/gctoolkit/issues/263 which states that retrieving the command line is supported for Pre-Unified log files. However, the AbstractJavaVirtualMachine.getCommandLine() method is not overridden in PreUnifiedJavaVirtualMachine so the Abstract method is used instead.
Not sure if this was stubbed out while waiting for issue 263 or an oversight.
@kcpeppe & @dsgrieve for comment
This is behaviour that we had in Censum but didn't get transferred to GCToolKit. It is a lower priority item for me ATM.