- java.lang.Object
-
- com.sun.management.internal.GcInfoUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompositeTypegetCompositeType()static GcInfonewGcInfoInstance(long index, long startTime, long endTime, Map<String,MemoryUsage> usageBeforeGc, Map<String,MemoryUsage> usageAfterGc)static CompositeDatatoCompositeData(GcInfo info)
-
-
-
Method Detail
-
getCompositeType
public static CompositeType getCompositeType()
- Returns:
- an instance of
CompositeTypefor theGcInfoclass
-
toCompositeData
public static CompositeData toCompositeData(GcInfo info)
- Parameters:
info- the garbage collection information- Returns:
- a new
CompositeDatainstance that represents the suppliedinfoobject
-
newGcInfoInstance
public static GcInfo newGcInfoInstance(long index, long startTime, long endTime, Map<String,MemoryUsage> usageBeforeGc, Map<String,MemoryUsage> usageAfterGc)
- Parameters:
index- the identifier of this garbage collection which is the number of collections that this collector has donestartTime- the start time of the collection in milliseconds since the Java virtual machine was started.endTime- the end time of the collection in milliseconds since the Java virtual machine was started.usageBeforeGc- the memory usage of all memory pools at the beginning of this GC.usageAfterGc- the memory usage of all memory pools at the end of this GC.- Returns:
- a
GcInfoobject
-
-