< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/DebugContext.java

Print this page

        

*** 448,462 **** } else { metricsEnabled = immutable.hasUnscopedMetrics() || immutable.listMetrics; } } ! public Path getDumpPath(String extension, boolean directory) { try { String id = description == null ? null : description.identifier; String label = description == null ? null : description.getLabel(); ! Path result = PathUtilities.createUnique(immutable.options, DumpPath, id, label, extension, directory); if (ShowDumpFiles.getValue(immutable.options)) { TTY.println("Dumping debug output to %s", result.toAbsolutePath().toString()); } return result; } catch (IOException ex) { --- 448,462 ---- } else { metricsEnabled = immutable.hasUnscopedMetrics() || immutable.listMetrics; } } ! public Path getDumpPath(String extension, boolean createMissingDirectory) { try { String id = description == null ? null : description.identifier; String label = description == null ? null : description.getLabel(); ! Path result = PathUtilities.createUnique(immutable.options, DumpPath, id, label, extension, createMissingDirectory); if (ShowDumpFiles.getValue(immutable.options)) { TTY.println("Dumping debug output to %s", result.toAbsolutePath().toString()); } return result; } catch (IOException ex) {
*** 805,816 **** if (currentScope == null) { // In an active DisabledScope return true; } return !currentScope.isTopLevel(); } - return immutable.scopesEnabled && currentScope == null; } class DisabledScope implements DebugContext.Scope { final boolean savedMetricsEnabled; final ScopeImpl savedScope; --- 805,817 ---- if (currentScope == null) { // In an active DisabledScope return true; } return !currentScope.isTopLevel(); + } else { + return false; } } class DisabledScope implements DebugContext.Scope { final boolean savedMetricsEnabled; final ScopeImpl savedScope;
< prev index next >