public class ProfileCompiledMethodsPhase extends Phase
getNodeWeight(Node)
method.
Additionally, there's a second counter that's only increased for code sections without invokes.Modifier and Type | Field and Description |
---|---|
private static String |
GROUP_NAME |
private static String |
GROUP_NAME_INVOKES |
private static String |
GROUP_NAME_WITHOUT |
private static boolean |
WITH_INVOKE_FREE_SECTIONS |
private static boolean |
WITH_INVOKES |
private static boolean |
WITH_SECTION_HEADER |
BEFORE_PHASE_DUMP_LEVEL, PHASE_DUMP_LEVEL
Constructor and Description |
---|
ProfileCompiledMethodsPhase() |
Modifier and Type | Method and Description |
---|---|
private static void |
addSectionCounters(FixedWithNextNode start,
Collection<Block> sectionBlocks,
Collection<Loop<Block>> childLoops,
SchedulePhase schedule,
ControlFlowGraph cfg) |
private static double |
getNodeWeight(Node node) |
private static double |
getSectionWeight(SchedulePhase schedule,
Collection<Block> blocks) |
private static boolean |
hasInvoke(Collection<Block> blocks) |
protected void |
run(StructuredGraph graph) |
private static String |
sectionHead(Node node) |
apply, apply, createName, getName
private static final String GROUP_NAME
private static final String GROUP_NAME_WITHOUT
private static final String GROUP_NAME_INVOKES
private static final boolean WITH_SECTION_HEADER
private static final boolean WITH_INVOKE_FREE_SECTIONS
private static final boolean WITH_INVOKES
public ProfileCompiledMethodsPhase()
protected void run(StructuredGraph graph)
private static void addSectionCounters(FixedWithNextNode start, Collection<Block> sectionBlocks, Collection<Loop<Block>> childLoops, SchedulePhase schedule, ControlFlowGraph cfg)
private static String sectionHead(Node node)
private static double getSectionWeight(SchedulePhase schedule, Collection<Block> blocks)
private static double getNodeWeight(Node node)
private static boolean hasInvoke(Collection<Block> blocks)