public class HistogramInlineInvokePlugin extends Object implements InlineInvokePlugin
Modifier and Type | Class and Description |
---|---|
private static class |
HistogramInlineInvokePlugin.MethodStatistic |
private static class |
HistogramInlineInvokePlugin.MethodStatistics |
InlineInvokePlugin.InlineInfo
Modifier and Type | Field and Description |
---|---|
private HistogramInlineInvokePlugin.MethodStatistic |
currentStatistic |
private StructuredGraph |
graph |
private Map<ResolvedJavaMethod,HistogramInlineInvokePlugin.MethodStatistics> |
histogram |
Constructor and Description |
---|
HistogramInlineInvokePlugin(StructuredGraph graph) |
Modifier and Type | Method and Description |
---|---|
private void |
accept(HistogramInlineInvokePlugin.MethodStatistic current) |
private int |
countCalls() |
private int |
countNodes() |
private static boolean |
isNonTrivial(Node node) |
void |
notifyAfterInline(ResolvedJavaMethod methodToInline)
Notification that a method was inlined.
|
void |
notifyBeforeInline(ResolvedJavaMethod methodToInline)
Notification that a method is about to be inlined.
|
void |
print(OptimizedCallTarget target) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
notifyNotInlined, shouldInlineInvoke
private final Map<ResolvedJavaMethod,HistogramInlineInvokePlugin.MethodStatistics> histogram
private final StructuredGraph graph
private HistogramInlineInvokePlugin.MethodStatistic currentStatistic
public HistogramInlineInvokePlugin(StructuredGraph graph)
public void notifyBeforeInline(ResolvedJavaMethod methodToInline)
InlineInvokePlugin
notifyBeforeInline
in interface InlineInvokePlugin
methodToInline
- the inlined methodpublic void notifyAfterInline(ResolvedJavaMethod methodToInline)
InlineInvokePlugin
notifyAfterInline
in interface InlineInvokePlugin
methodToInline
- the inlined methodprivate int countNodes()
private int countCalls()
private static boolean isNonTrivial(Node node)
private void accept(HistogramInlineInvokePlugin.MethodStatistic current)
public void print(OptimizedCallTarget target)