changeset 12713:8716b7ceef94

removed debug value header & footer from non-debug value printing executions
author Doug Simon <doug.simon@oracle.com>
date Fri, 08 Nov 2013 10:55:48 +0100
parents 882a0aadfed6
children 655c87d8d3c2
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java
diffstat 1 files changed, 15 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Thu Nov 07 20:55:13 2013 +0100
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Fri Nov 08 10:55:48 2013 +0100
@@ -384,13 +384,13 @@
     }
 
     private void printDebugValues(String phase, boolean reset) throws GraalInternalError {
-        TTY.println();
-        if (phase != null) {
-            TTY.println("<DebugValues:" + phase + ">");
-        } else {
-            TTY.println("<DebugValues>");
-        }
         if (Debug.isEnabled() && areMetricsOrTimersEnabled()) {
+            TTY.println();
+            if (phase != null) {
+                TTY.println("<DebugValues:" + phase + ">");
+            } else {
+                TTY.println("<DebugValues>");
+            }
             List<DebugValueMap> topLevelMaps = DebugValueMap.getTopLevelMaps();
             List<DebugValue> debugValues = KeyRegistry.getDebugValues();
             if (debugValues.size() > 0) {
@@ -435,16 +435,16 @@
                     default:
                         throw new GraalInternalError("Unknown summary type: %s", summary);
                 }
-            }
-            if (reset) {
-                for (DebugValueMap topLevelMap : topLevelMaps) {
-                    topLevelMap.reset();
+                if (reset) {
+                    for (DebugValueMap topLevelMap : topLevelMaps) {
+                        topLevelMap.reset();
+                    }
                 }
-            }
-            if (phase != null) {
-                TTY.println("</DebugValues:" + phase + ">");
-            } else {
-                TTY.println("</DebugValues>");
+                if (phase != null) {
+                    TTY.println("</DebugValues:" + phase + ">");
+                } else {
+                    TTY.println("</DebugValues>");
+                }
             }
         }
     }