use of org.graalvm.compiler.truffle.runtime.TruffleInliningProfile in project graal by oracle.
the class TraceInliningListener method logInliningDecisionRecursive.
private void logInliningDecisionRecursive(OptimizedCallTarget target, TruffleInlining inliningDecision, int depth) {
for (TruffleInliningDecision decision : inliningDecision) {
TruffleInliningProfile profile = decision.getProfile();
boolean inlined = decision.shouldInline();
String msg = inlined ? "inline success" : "inline failed";
runtime.logEvent(depth, msg, decision.getProfile().getCallNode().getCurrentCallTarget().toString(), profile.getDebugProperties());
if (inlined) {
logInliningDecisionRecursive(target, decision, depth + 1);
}
}
}
Aggregations