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);
}
}
Aggregations