# HG changeset patch # User Doug Simon # Date 1408745894 -7200 # Node ID 34b000f69af3705f6f73748063efce7e97fe96c7 # Parent 6f245b6d29364490806f40b37b91c24a78bde978 made debug value printing work if individual timers or metrics are enabled without -G:Time or -G:Meter being specified diff -r 6f245b6d2936 -r 34b000f69af3 graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java --- a/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java Fri Aug 22 23:55:08 2014 +0200 +++ b/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java Sat Aug 23 00:18:14 2014 +0200 @@ -1087,6 +1087,14 @@ enabledTimers = timers.isEmpty() ? null : timers; } + public static boolean areUnconditionalTimersEnabled() { + return enabledTimers != null && !enabledTimers.isEmpty(); + } + + public static boolean areUnconditionalMetricsEnabled() { + return enabledMetrics != null && !enabledMetrics.isEmpty(); + } + protected static void parseMetricAndTimerSystemProperties(Set metrics, Set timers) { do { try { diff -r 6f245b6d2936 -r 34b000f69af3 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/DebugValuesPrinter.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/DebugValuesPrinter.java Fri Aug 22 23:55:08 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/DebugValuesPrinter.java Sat Aug 23 00:18:14 2014 +0200 @@ -38,7 +38,7 @@ public class DebugValuesPrinter { public void printDebugValues(String phase, boolean reset) throws GraalInternalError { - if (Debug.isEnabled() && areMetricsOrTimersEnabled()) { + if (Debug.areUnconditionalMetricsEnabled() || Debug.areUnconditionalTimersEnabled() || (Debug.isEnabled() && areMetricsOrTimersEnabled())) { TTY.println(); if (phase != null) { TTY.println("");