Module com.microsoft.gctoolkit.api
Package com.microsoft.gctoolkit.jvm
Class PreUnifiedJavaVirtualMachine
- java.lang.Object
-
- com.microsoft.gctoolkit.jvm.AbstractJavaVirtualMachine
-
- com.microsoft.gctoolkit.jvm.PreUnifiedJavaVirtualMachine
-
- All Implemented Interfaces:
JavaVirtualMachine
public class PreUnifiedJavaVirtualMachine extends AbstractJavaVirtualMachine
An implementation of JavaVirtualMachine that uses io.vertx verticles to feed lines to the parser(s) and post events to the aggregators. This implementation is here in the vertx module so that the api and parser modules can exist without having to import io.vertx. In the api module, the class GCToolKit uses the classloader to load required JavaVirtualMachine.
-
-
Constructor Summary
Constructors Constructor Description PreUnifiedJavaVirtualMachine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(DataSource logFile)booleanisShenandoah()Returntrueif the JVM was using Shenandoah.booleanisUnifiedLogging()True if the log is unified or false for preunifiedbooleanisZGC()Returntrueif the JVM was using ZGC.-
Methods inherited from class com.microsoft.gctoolkit.jvm.AbstractJavaVirtualMachine
analyze, getAggregation, getCommandLine, getEstimatedJVMStartTime, getJVMTerminationTime, getRuntimeDuration, getTimeOfFirstEvent, isCMS, isG1GC, isParallel, isSerial, setDataSource, setEstimatedJVMStartTime
-
-
-
-
Method Detail
-
accepts
public boolean accepts(DataSource logFile)
- Parameters:
logFile- the log to be considered. Returntrueif the JavaVirtualMachine implementation can work with the GC log.- Returns:
trueif the JavaVirtualMachine implementation can work with the GC Log.
-
isUnifiedLogging
public boolean isUnifiedLogging()
Description copied from interface:JavaVirtualMachineTrue if the log is unified or false for preunified- Returns:
- true is the log is from JDK 9+
-
isZGC
public boolean isZGC()
Description copied from interface:JavaVirtualMachineReturntrueif the JVM was using ZGC.- Specified by:
isZGCin interfaceJavaVirtualMachine- Overrides:
isZGCin classAbstractJavaVirtualMachine- Returns:
trueif the GC is ZGC.
-
isShenandoah
public boolean isShenandoah()
Description copied from interface:JavaVirtualMachineReturntrueif the JVM was using Shenandoah.- Specified by:
isShenandoahin interfaceJavaVirtualMachine- Overrides:
isShenandoahin classAbstractJavaVirtualMachine- Returns:
trueif the GC is Shenandoah.
-
-