src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/internal/method/MethodMetricsInlineeScopeInfo.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/internal/method/MethodMetricsInlineeScopeInfo.java	Mon Mar 20 17:37:55 2017
--- new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/internal/method/MethodMetricsInlineeScopeInfo.java	Mon Mar 20 17:37:55 2017

*** 23,50 **** --- 23,51 ---- package org.graalvm.compiler.debug.internal.method; import org.graalvm.compiler.debug.GraalDebugConfig; import org.graalvm.compiler.debug.internal.DebugScope; import org.graalvm.compiler.debug.internal.DebugScope.ExtraInfo; + import org.graalvm.compiler.options.OptionValues; import jdk.vm.ci.meta.ResolvedJavaMethod; public class MethodMetricsInlineeScopeInfo extends MethodMetricsRootScopeInfo { MethodMetricsInlineeScopeInfo(ResolvedJavaMethod rootMethod) { super(rootMethod); } ! public static MethodMetricsInlineeScopeInfo create(ResolvedJavaMethod rootMethod, OptionValues options) { ! if (GraalDebugConfig.isGlobalMetricsInterceptedByMethodMetricsEnabled(options)) { return new MethodMetricsInlineeScopeInfo(rootMethod); } return null; } ! public static MethodMetricsInlineeScopeInfo create(OptionValues options) { ! if (GraalDebugConfig.isGlobalMetricsInterceptedByMethodMetricsEnabled(options)) { ExtraInfo rootInfo = DebugScope.getInstance().getExtraInfo(); if (rootInfo instanceof MethodMetricsRootScopeInfo) { return new MethodMetricsInlineeScopeInfo(((MethodMetricsRootScopeInfo) rootInfo).getRootMethod()); } }

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/internal/method/MethodMetricsInlineeScopeInfo.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File