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.ConditionProfile.createCountingProfile()
Modifier and Type | Method and Description |
---|---|
int |
getFalseCount() |
int |
getTrueCount() |
boolean |
profile(boolean value) |
java.lang.String |
toString() |
createBinaryProfile, createCountingProfile
clone
public boolean profile(boolean value)
profile
in class ConditionProfile
public int getTrueCount()
public int getFalseCount()
public java.lang.String toString()
toString
in class java.lang.Object