Module com.microsoft.gctoolkit.api
Class G1ConcurrentMark
- java.lang.Object
-
- com.microsoft.gctoolkit.event.jvm.JVMEvent
-
- com.microsoft.gctoolkit.event.GCEvent
-
- com.microsoft.gctoolkit.event.g1gc.G1GCEvent
-
- com.microsoft.gctoolkit.event.g1gc.G1GCConcurrentEvent
-
- com.microsoft.gctoolkit.event.g1gc.G1ConcurrentMark
-
public class G1ConcurrentMark extends G1GCConcurrentEvent
Concurrent phase
-
-
Constructor Summary
Constructors Constructor Description G1ConcurrentMark(DateTimeStamp timeStamp, double duration)G1ConcurrentMark(DateTimeStamp timeStamp, GCCause cause, double duration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()was preclean aborted due to occupancy thresholdintgetActiveWorkerThreads()intgetAvailableWorkerThreads()doublegetMarkFromRootsDuration()doublegetPrecleanDuration()booleanisAborted()voidsetActiveWorkerThreads(int activeWorkerThreads)voidsetAvailableWorkerThreads(int availableWorkerThreads)voidsetMarkFromRootsDuration(double duration)voidsetPrecleanDuration(double duration)-
Methods inherited from class com.microsoft.gctoolkit.event.GCEvent
equals, getGarbageCollectionType, getGCCause, hashCode, setGCCause
-
Methods inherited from class com.microsoft.gctoolkit.event.jvm.JVMEvent
getDateTimeStamp, getDuration, toString
-
-
-
-
Constructor Detail
-
G1ConcurrentMark
public G1ConcurrentMark(DateTimeStamp timeStamp, double duration)
- Parameters:
timeStamp- time of the eventduration- duration of the event
-
G1ConcurrentMark
public G1ConcurrentMark(DateTimeStamp timeStamp, GCCause cause, double duration)
- Parameters:
timeStamp- time of the eventcause- reason to trigger the eventduration- duration of the event
-
-
Method Detail
-
setMarkFromRootsDuration
public void setMarkFromRootsDuration(double duration)
- Parameters:
duration- for the mark from roots step
-
getMarkFromRootsDuration
public double getMarkFromRootsDuration()
- Returns:
- mark from roots duration
-
getActiveWorkerThreads
public int getActiveWorkerThreads()
- Returns:
- number of active workers
-
setActiveWorkerThreads
public void setActiveWorkerThreads(int activeWorkerThreads)
- Parameters:
activeWorkerThreads- number of active workers
-
getAvailableWorkerThreads
public int getAvailableWorkerThreads()
- Returns:
- size of worker pool
-
setAvailableWorkerThreads
public void setAvailableWorkerThreads(int availableWorkerThreads)
- Parameters:
availableWorkerThreads- set the work pool size
-
getPrecleanDuration
public double getPrecleanDuration()
- Returns:
- preclean duration
-
setPrecleanDuration
public void setPrecleanDuration(double duration)
- Parameters:
duration- set preclean duration
-
abort
public void abort()
was preclean aborted due to occupancy threshold
-
isAborted
public boolean isAborted()
- Returns:
- if preclean was aborted due to occupancy threshold
-
-