public final class HotSpotProfilingInfo extends Object implements ProfilingInfo, HotSpotProxified
Modifier and Type | Field and Description |
---|---|
private HotSpotMethodDataAccessor |
dataAccessor |
private int |
hintBCI |
private int |
hintPosition |
private boolean |
includeNormal |
private boolean |
includeOSR |
private boolean |
isMature |
private HotSpotResolvedJavaMethod |
method |
private HotSpotMethodData |
methodData |
private int |
position |
private static Class<?> |
supportedCompilerIRType
MethodData::_jvmci_ir_size (currently) supports at most one JVMCI compiler IR type
which will be determined by the first JVMCI compiler that calls
setCompilerIRSize(Class, int) . |
Constructor and Description |
---|
HotSpotProfilingInfo(HotSpotMethodData methodData,
HotSpotResolvedJavaMethod method,
boolean includeNormal,
boolean includeOSR) |
Modifier and Type | Method and Description |
---|---|
private void |
extraDataFound(HotSpotMethodDataAccessor data,
int pos) |
private void |
findBCI(int targetBCI,
boolean searchExtraData) |
double |
getBranchTakenProbability(int bci) |
int |
getCodeSize() |
int |
getCompilerIRSize(Class<?> irType) |
int |
getDeoptimizationCount(DeoptimizationReason reason) |
TriState |
getExceptionSeen(int bci) |
int |
getExecutionCount(int bci) |
JavaMethodProfile |
getMethodProfile(int bci) |
TriState |
getNullSeen(int bci) |
double[] |
getSwitchProbabilities(int bci) |
JavaTypeProfile |
getTypeProfile(int bci) |
void |
ignoreMature() |
boolean |
isMature() |
private void |
noDataFound(boolean exceptionPossiblyNotRecorded) |
private void |
normalDataFound(HotSpotMethodDataAccessor data,
int pos,
int bci) |
boolean |
setCompilerIRSize(Class<?> irType,
int size) |
private void |
setCurrentData(HotSpotMethodDataAccessor dataAccessor,
int position) |
void |
setMature() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toString
private final HotSpotMethodData methodData
private final HotSpotResolvedJavaMethod method
private boolean isMature
private int position
private int hintPosition
private int hintBCI
private HotSpotMethodDataAccessor dataAccessor
private boolean includeNormal
private boolean includeOSR
private static volatile Class<?> supportedCompilerIRType
MethodData::_jvmci_ir_size
(currently) supports at most one JVMCI compiler IR type
which will be determined by the first JVMCI compiler that calls
setCompilerIRSize(Class, int)
.public HotSpotProfilingInfo(HotSpotMethodData methodData, HotSpotResolvedJavaMethod method, boolean includeNormal, boolean includeOSR)
public int getCodeSize()
getCodeSize
in interface ProfilingInfo
public JavaTypeProfile getTypeProfile(int bci)
getTypeProfile
in interface ProfilingInfo
public JavaMethodProfile getMethodProfile(int bci)
getMethodProfile
in interface ProfilingInfo
public double getBranchTakenProbability(int bci)
getBranchTakenProbability
in interface ProfilingInfo
public double[] getSwitchProbabilities(int bci)
getSwitchProbabilities
in interface ProfilingInfo
public TriState getExceptionSeen(int bci)
getExceptionSeen
in interface ProfilingInfo
public TriState getNullSeen(int bci)
getNullSeen
in interface ProfilingInfo
public int getExecutionCount(int bci)
getExecutionCount
in interface ProfilingInfo
public int getDeoptimizationCount(DeoptimizationReason reason)
getDeoptimizationCount
in interface ProfilingInfo
private void findBCI(int targetBCI, boolean searchExtraData)
private void normalDataFound(HotSpotMethodDataAccessor data, int pos, int bci)
private void extraDataFound(HotSpotMethodDataAccessor data, int pos)
private void noDataFound(boolean exceptionPossiblyNotRecorded)
private void setCurrentData(HotSpotMethodDataAccessor dataAccessor, int position)
public boolean isMature()
isMature
in interface ProfilingInfo
public void ignoreMature()
public void setMature()
setMature
in interface ProfilingInfo
public boolean setCompilerIRSize(Class<?> irType, int size)
setCompilerIRSize
in interface ProfilingInfo
public int getCompilerIRSize(Class<?> irType)
getCompilerIRSize
in interface ProfilingInfo