public final class BranchProfiles extends Object
EdgeCounts
Modifier and Type | Field and Description |
---|---|
private BranchProfile[] |
data
Branch profile for each profiled bytecode
|
private NormalMethod |
method
Method containing counters
|
private int |
numCounters
Number of counters
|
Constructor and Description |
---|
BranchProfiles(NormalMethod m,
int[] cs) |
Modifier and Type | Method and Description |
---|---|
BranchProfile |
getEntry(int bcIndex)
Find the BranchProfile for a given bytecode index in the BranchProfile array
|
void |
print(PrintStream ps) |
private final NormalMethod method
private final int numCounters
private final BranchProfile[] data
BranchProfiles(NormalMethod m, int[] cs)
public BranchProfile getEntry(int bcIndex)
bcIndex
- the bytecode index of the branch instructionpublic void print(PrintStream ps)