Package com.helix.experiments.metaspace
Record Class MetaspaceReport
java.lang.Object
java.lang.Record
com.helix.experiments.metaspace.MetaspaceReport
public record MetaspaceReport(String scenarioName, int classesGenerated, double initialMetaspaceUsedMb, double finalMetaspaceUsedMb, double metaspaceGrowthMb, boolean gcTriggered, int activeClassLoaders)
extends Record
Summary report of Metaspace memory usage and class loading metrics.
-
Constructor Summary
ConstructorsConstructorDescriptionMetaspaceReport(String scenarioName, int classesGenerated, double initialMetaspaceUsedMb, double finalMetaspaceUsedMb, double metaspaceGrowthMb, boolean gcTriggered, int activeClassLoaders) Creates an instance of aMetaspaceReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveClassLoadersrecord component.intReturns the value of theclassesGeneratedrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefinalMetaspaceUsedMbrecord component.booleanReturns the value of thegcTriggeredrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theinitialMetaspaceUsedMbrecord component.doubleReturns the value of themetaspaceGrowthMbrecord component.Returns the value of thescenarioNamerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
MetaspaceReport
public MetaspaceReport(String scenarioName, int classesGenerated, double initialMetaspaceUsedMb, double finalMetaspaceUsedMb, double metaspaceGrowthMb, boolean gcTriggered, int activeClassLoaders) Creates an instance of aMetaspaceReportrecord class.- Parameters:
scenarioName- the value for thescenarioNamerecord componentclassesGenerated- the value for theclassesGeneratedrecord componentinitialMetaspaceUsedMb- the value for theinitialMetaspaceUsedMbrecord componentfinalMetaspaceUsedMb- the value for thefinalMetaspaceUsedMbrecord componentmetaspaceGrowthMb- the value for themetaspaceGrowthMbrecord componentgcTriggered- the value for thegcTriggeredrecord componentactiveClassLoaders- the value for theactiveClassLoadersrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
scenarioName
Returns the value of thescenarioNamerecord component.- Returns:
- the value of the
scenarioNamerecord component
-
classesGenerated
public int classesGenerated()Returns the value of theclassesGeneratedrecord component.- Returns:
- the value of the
classesGeneratedrecord component
-
initialMetaspaceUsedMb
public double initialMetaspaceUsedMb()Returns the value of theinitialMetaspaceUsedMbrecord component.- Returns:
- the value of the
initialMetaspaceUsedMbrecord component
-
finalMetaspaceUsedMb
public double finalMetaspaceUsedMb()Returns the value of thefinalMetaspaceUsedMbrecord component.- Returns:
- the value of the
finalMetaspaceUsedMbrecord component
-
metaspaceGrowthMb
public double metaspaceGrowthMb()Returns the value of themetaspaceGrowthMbrecord component.- Returns:
- the value of the
metaspaceGrowthMbrecord component
-
gcTriggered
public boolean gcTriggered()Returns the value of thegcTriggeredrecord component.- Returns:
- the value of the
gcTriggeredrecord component
-
activeClassLoaders
public int activeClassLoaders()Returns the value of theactiveClassLoadersrecord component.- Returns:
- the value of the
activeClassLoadersrecord component
-