public final class CountingConditionProfile extends ConditionProfile
BinaryConditionProfile this implementation of ConditionProfile also counts the
number of times the condition was true and false. This information is reported to the underlying
optimization system using CompilerDirectives.injectBranchProbability(double, boolean).
Condition profiles are intended to be used as part of if conditions.| Modifier and Type | Method and Description |
|---|---|
int |
getFalseCount() |
int |
getTrueCount() |
boolean |
profile(boolean value) |
java.lang.String |
toString() |
createBinaryProfile, createCountingProfileclonepublic boolean profile(boolean value)
profile in class ConditionProfilepublic int getTrueCount()
public int getFalseCount()
public java.lang.String toString()
toString in class java.lang.Object