changeset 6312:f70b0935485b

IGV : Add idx to binary graphs to help visualizing nodes during comparison
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 04 Sep 2012 17:09:46 +0200
parents 9b017f213df8
children 7ac010ae8c97
files src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/BinaryParser.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/BinaryParser.java	Mon Sep 03 15:20:39 2012 +0200
+++ b/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/BinaryParser.java	Tue Sep 04 17:09:46 2012 +0200
@@ -657,10 +657,11 @@
             if (preds > 0) {
                 properties.setProperty("hasPredecessor", "true");
             }
+            properties.setProperty("idx", Integer.toString(id));
             int propCount = readShort();
             for (int j = 0; j < propCount; j++) {
                 String key = readPoolObject(String.class);
-                if (key.equals("hasPredecessor") || key.equals("name") || key.equals("class")) {
+                if (key.equals("hasPredecessor") || key.equals("name") || key.equals("class") || key.equals("id") || key.equals("idx")) {
                     key = "!data." + key;
                 }
                 Object value = readPropertyObject();