Search in sources :

Example 1 with ProfileInvokeNode

use of org.graalvm.compiler.hotspot.nodes.profiling.ProfileInvokeNode in project graal by oracle.

the class HotSpotProfilingPlugin method profileInvoke.

@Override
public void profileInvoke(GraphBuilderContext builder, ResolvedJavaMethod method, FrameState frameState) {
    assert shouldProfile(builder, method);
    OptionValues options = builder.getOptions();
    if (Options.ProfileInvokes.getValue(options) && !method.isClassInitializer()) {
        ProfileNode p = builder.append(new ProfileInvokeNode(method, invokeNotifyFreqLog(options), invokeProfilePobabilityLog(options)));
        p.setStateBefore(frameState);
    }
}
Also used : OptionValues(org.graalvm.compiler.options.OptionValues) ProfileInvokeNode(org.graalvm.compiler.hotspot.nodes.profiling.ProfileInvokeNode) ProfileNode(org.graalvm.compiler.hotspot.nodes.profiling.ProfileNode)

Aggregations

ProfileInvokeNode (org.graalvm.compiler.hotspot.nodes.profiling.ProfileInvokeNode)1 ProfileNode (org.graalvm.compiler.hotspot.nodes.profiling.ProfileNode)1 OptionValues (org.graalvm.compiler.options.OptionValues)1