Revision: 3790
          http://vexi.svn.sourceforge.net/vexi/?rev=3790&view=rev
Author:   jeffbuhrt
Date:     2010-02-05 22:03:19 +0000 (Fri, 05 Feb 2010)

Log Message:
-----------
added static/java/JS to the end of each line to make reading the output quicker 
to follow

Modified Paths:
--------------
    trunk/core/org.vexi.devl/src/org/vexi/instrument/memory/GCUtil.java

Modified: trunk/core/org.vexi.devl/src/org/vexi/instrument/memory/GCUtil.java
===================================================================
--- trunk/core/org.vexi.devl/src/org/vexi/instrument/memory/GCUtil.java 
2010-02-05 15:28:06 UTC (rev 3789)
+++ trunk/core/org.vexi.devl/src/org/vexi/instrument/memory/GCUtil.java 
2010-02-05 22:03:19 UTC (rev 3790)
@@ -141,7 +141,7 @@
             Iterator it = act.getItem().staticRefs();
             if (it.hasNext()) {
                 Field fld = (Field)it.next();
-                return fld + "->\n" + act;
+                return fld + "-> (from static)\n" + act;
             }
             
             // follow incomming
@@ -209,18 +209,18 @@
         public String toString() {
                String r = "";
                if(Memory.get(obj)!=null)
-                       r+= Memory.get(obj).firstLine() + ":";
+                       r+= Memory.get(obj).firstLine() + ":"; // JS object
                else
-                       r+= "    ";
+                       r+= "    "; // non-JS object
                
                if(obj instanceof JS){
                        try {
-                                       return 
r+=JSON.marshal((JS)obj).coerceToString();
+                                       return 
r+=JSON.marshal((JS)obj).coerceToString() + " JS";
                                } catch (JSExn e) {
                                        return r+=obj.toString() + " (Could not 
stringify: "+e.getMessage()+")";
                                }
                }else{
-                       r+=obj.toString();
+                       r+=obj.toString() + " java";
                }
             return r;
                //return obj.getClass().getName() + "@" + 
Integer.toHexString(System.identityHashCode(obj));


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to