- java.lang.Object
-
- com.microsoft.gctoolkit.parser.AbstractLogTrace
-
- com.microsoft.gctoolkit.parser.GCLogTrace
-
public class GCLogTrace extends AbstractLogTrace
Class that represents a chunk of GC log that we are attempting to match to a known GC log pattern
-
-
Field Summary
-
Fields inherited from class com.microsoft.gctoolkit.parser.AbstractLogTrace
trace
-
-
Constructor Summary
Constructors Constructor Description GCLogTrace(Matcher matcher)
-
Method Summary
-
Methods inherited from class com.microsoft.gctoolkit.parser.AbstractLogTrace
convertToDouble, getDateStamp, getDateTimeStamp, getDateTimeStamp, getDoubleGroup, getGroup, getPercentageGroup, getTimeStamp, length, next
-
-
-
-
Constructor Detail
-
GCLogTrace
public GCLogTrace(Matcher matcher)
-
-
Method Detail
-
groupCount
public int groupCount()
- Overrides:
groupCountin classAbstractLogTrace
-
groupNotNull
public boolean groupNotNull(int index)
- Overrides:
groupNotNullin classAbstractLogTrace
-
getLongGroup
public long getLongGroup(int index)
- Overrides:
getLongGroupin classAbstractLogTrace
-
getIntegerGroup
public int getIntegerGroup(int index)
- Overrides:
getIntegerGroupin classAbstractLogTrace
-
gcCause
public GCCause gcCause(int base, int offset)
-
gcCause
public GCCause gcCause(int offset)
-
gcCause
public GCCause gcCause()
-
getPauseTime
public double getPauseTime()
-
getDuration
public double getDuration()
-
getDurationInSeconds
public double getDurationInSeconds()
-
getMilliseconds
public double getMilliseconds(int index)
Annoyingly we're assuming the field actually is ms instead of confirming- Parameters:
index- Index of the capture group.- Returns:
- The capture group parsed to a double.
-
getMilliseconds
public double getMilliseconds()
Assumed to be the last capture group- Returns:
- The last capture group parsed to a double.
-
contains
public boolean contains(int index, String value)
-
contains
public boolean contains(String value)
-
hasNext
public boolean hasNext()
-
end
public int end()
-
toKBytes
public long toKBytes(int offset)
-
doubleToKBytes
public long doubleToKBytes(int offset)
-
toKBytes
public long toKBytes(long value, String units)
-
getMetaspaceSummary
public PermGenSummary getMetaspaceSummary(int offset)
-
getOccupancyBeforeAfterWithMemoryPoolSizeSummary
public MemoryPoolSummary getOccupancyBeforeAfterWithMemoryPoolSizeSummary(int offset)
-
getOccupancyWithMemoryPoolSizeSummary
public MemoryPoolSummary getOccupancyWithMemoryPoolSizeSummary(int offset)
-
getMetaSpaceRecord
public MetaspaceRecord getMetaSpaceRecord(int offset)
-
getEnlargedMemoryPoolRecord
public MetaspaceRecord getEnlargedMemoryPoolRecord(int offset)
-
getEnlargedMetaSpaceRecord
public MetaspaceRecord getEnlargedMetaSpaceRecord(int offset)
-
getUnifiedStatisticalSummary
public UnifiedStatisticalSummary getUnifiedStatisticalSummary()
-
countSummary
public UnifiedCountSummary countSummary()
-
regionSummary
public RegionSummary regionSummary()
-
notYetImplemented
public void notYetImplemented()
-
-