Search in sources :

Example 1 with TruffleInliningProfile

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);
        }
    }
}
Also used : TruffleInliningDecision(org.graalvm.compiler.truffle.runtime.TruffleInliningDecision) TruffleInliningProfile(org.graalvm.compiler.truffle.runtime.TruffleInliningProfile)

Aggregations

TruffleInliningDecision (org.graalvm.compiler.truffle.runtime.TruffleInliningDecision)1 TruffleInliningProfile (org.graalvm.compiler.truffle.runtime.TruffleInliningProfile)1