changeset 3068:ea778c37bdae

Updated GRAAL_README. Add new short-cut flag for graph output "-G:Plot".
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Thu, 23 Jun 2011 16:40:53 +0200
parents 1b4a9f2eef04
children 6202a6bb6726
files GRAAL_README graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalCompiler.java graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalOptions.java graal/com.oracle.max.graal.runtime/src/com/oracle/max/graal/runtime/HotSpotRuntime.java
diffstat 4 files changed, 18 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/GRAAL_README	Wed Jun 22 22:27:02 2011 +0200
+++ b/GRAAL_README	Thu Jun 23 16:40:53 2011 +0200
@@ -5,4 +5,19 @@
 - MAXINE: Pointing to a Maxine VM repository with compiled Java files.
 - GRAAL: Pointing to a Graal VM repository with compiled Java files.
 
-For starting the Graal VM, the two flags "-client -graal" have to be specified.
+In particular, the VM will look for the compiled Java files in the following directories:
+${MAXINE}/com.oracle.max.cri/bin
+${MAXINE}/com.oracle.max.base/bin
+${MAXINE}/com.oracle.max.asmdis/bin
+${MAXINE}/com.oracle.max.asm/bin
+${MAXINE}/com.oracle.max.graal.graph/bin
+${GRAAL}/graal/com.oracle.max.graal.compiler/bin
+${GRAAL}/graal/com.oracle.max.graal.runtime/bin
+${GRAAL}/graal/com.oracle.max.graal.graphviz/bin
+
+For starting the Graal VM, the two flags "-client -graal" have to be specified. Additional flags that might be useful:
+-G:Plot Sends the graphs of compiled methods via network stream to the IdealGraphVisualizer (NetBeans project at ${GRAAL}/src/share/tools/IdealGraphVisualizer that can be built and run with NetBeans 7.0, use "Graal Coloring" and "Graal Edge Coloring" filters)
+-G:Time Prints timings for the different compilation phases
+-G:Meter Prints metrics for the different compilation phases
+
+The usual HotSpot flags -Xcomp -XX:CompileOnly= -XX:CompileCommand= or -XX:+PrintCompilation can be used to control the compiled methods.
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalCompiler.java	Wed Jun 22 22:27:02 2011 +0200
+++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalCompiler.java	Thu Jun 23 16:40:53 2011 +0200
@@ -142,7 +142,7 @@
         if (GraalOptions.PrintDOTGraphToPdf) {
             addCompilationObserver(new GraphvizPrinterObserver(true));
         }
-        if (GraalOptions.PrintIdealGraphLevel != 0) {
+        if (GraalOptions.PrintIdealGraphLevel != 0 || GraalOptions.Plot) {
             CompilationObserver observer;
             if (GraalOptions.PrintIdealGraphFile) {
                 observer = new IdealGraphPrinterObserver();
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalOptions.java	Wed Jun 22 22:27:02 2011 +0200
+++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalOptions.java	Thu Jun 23 16:40:53 2011 +0200
@@ -79,6 +79,7 @@
     public static boolean OmitDOTFrameStates                 = ____;
 
     // Ideal graph visualizer output settings
+    public static boolean Plot                               = ____;
     public static int     PrintIdealGraphLevel               = 0;
     public static boolean PrintIdealGraphFile                = ____;
     public static String  PrintIdealGraphAddress             = "127.0.0.1";
--- a/graal/com.oracle.max.graal.runtime/src/com/oracle/max/graal/runtime/HotSpotRuntime.java	Wed Jun 22 22:27:02 2011 +0200
+++ b/graal/com.oracle.max.graal.runtime/src/com/oracle/max/graal/runtime/HotSpotRuntime.java	Thu Jun 23 16:40:53 2011 +0200
@@ -26,7 +26,6 @@
 import java.lang.reflect.*;
 import java.util.*;
 
-import com.oracle.max.graal.compiler.debug.*;
 import com.oracle.max.graal.compiler.ir.*;
 import com.oracle.max.graal.graph.*;
 import com.oracle.max.graal.runtime.nodes.*;