Mercurial > hg > truffle
annotate src/share/tools/IdealGraphVisualizer/README @ 7666:31540ca73e81
Remove ControlFlowException in SimpleLanguage.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 01 Feb 2013 19:53:52 +0100 |
parents | 2fd52cd64156 |
children |
rev | line source |
---|---|
222 | 1 The Ideal Graph Visualizer is a tool developed to help examine the |
2 intermediate representation of C2 which is commonly referred to as the | |
3 "ideal graph". It was developed in collaboration with the University | |
4 of Linz in Austria and has been included as part of hotspot since that | |
5 was the primary target of the tool. The tool itself is fairly general | |
6 with only a few modules that contain C2 specific elements. | |
7 | |
2765
2fd52cd64156
IdealGraphVisualizer: Upgrade to NetBeans 7.0 as platform
Peter Hofer <peter.hofer@jku.at>
parents:
417
diff
changeset
|
8 The tool is built on top of the NetBeans 7 rich client |
222 | 9 infrastructure and so requires NetBeans to build. It currently |
10 requires Java 6 to run as it needs support for JavaScript for its | |
11 filtering mechanism and assumes it's built into the platform. It | |
2765
2fd52cd64156
IdealGraphVisualizer: Upgrade to NetBeans 7.0 as platform
Peter Hofer <peter.hofer@jku.at>
parents:
417
diff
changeset
|
12 should build out of the box with NetBeans 7.0 and Java 6 or later. |
222 | 13 |
14 The JVM support is controlled by the flag -XX:PrintIdealGraphLevel=# | |
15 where # is: | |
16 | |
17 0: no output, the default | |
18 1: dumps graph after parsing, before matching, and final code. | |
19 also dumps graph for failed compiles, if available | |
20 2: more detail, including after loop opts | |
21 3: even more detail | |
22 4: prints graph after parsing every bytecode (very slow) | |
23 | |
24 By default the JVM expects that it will connect to a visualizer on the | |
25 local host on port 4444. This can be configured using the options | |
26 -XX:PrintIdealGraphAddress= and -XX:PrintIdealGraphPort=. | |
27 PrintIdealGraphAddress can actually be a hostname. | |
28 | |
29 Alternatively the output can be sent to a file using | |
30 -XX:PrintIdealGraphFile=filename. Each compiler thread will get it's | |
31 own file with unique names being generated by adding a number onto the | |
32 provided file name. | |
33 | |
34 More information about the tool is available at | |
35 http://wikis.sun.com/display/HotSpotInternals/IdealGraphVisualizer. |