incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monte...@apache.org
Subject svn commit: r779961 - in /incubator/kato/trunk/org.apache.kato.tools.katoview: .classpath src/com/ src/org/apache/kato/katoview/commands/tomcat/TomcatJSPCommand.java
Date Fri, 29 May 2009 13:24:02 GMT
Author: monteith
Date: Fri May 29 13:24:02 2009
New Revision: 779961

URL: http://svn.apache.org/viewvc?rev=779961&view=rev
Log:
Improve JSP command formatting.

Removed:
    incubator/kato/trunk/org.apache.kato.tools.katoview/src/com/
Modified:
    incubator/kato/trunk/org.apache.kato.tools.katoview/.classpath
    incubator/kato/trunk/org.apache.kato.tools.katoview/src/org/apache/kato/katoview/commands/tomcat/TomcatJSPCommand.java

Modified: incubator/kato/trunk/org.apache.kato.tools.katoview/.classpath
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato.tools.katoview/.classpath?rev=779961&r1=779960&r2=779961&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato.tools.katoview/.classpath (original)
+++ incubator/kato/trunk/org.apache.kato.tools.katoview/.classpath Fri May 29 13:24:02 2009
@@ -5,5 +5,6 @@
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
 	<classpathentry combineaccessrules="false" kind="src" path="/HprofBinaryReaderPOC"/>
 	<classpathentry combineaccessrules="false" kind="src" path="/KatoHProfAdapterPOC"/>
+	<classpathentry kind="lib" path="C:/Projects/DTFJ/depends/commons-jxpath-1.3/commons-jxpath-1.3.jar"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>

Modified: incubator/kato/trunk/org.apache.kato.tools.katoview/src/org/apache/kato/katoview/commands/tomcat/TomcatJSPCommand.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato.tools.katoview/src/org/apache/kato/katoview/commands/tomcat/TomcatJSPCommand.java?rev=779961&r1=779960&r2=779961&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato.tools.katoview/src/org/apache/kato/katoview/commands/tomcat/TomcatJSPCommand.java
(original)
+++ incubator/kato/trunk/org.apache.kato.tools.katoview/src/org/apache/kato/katoview/commands/tomcat/TomcatJSPCommand.java
Fri May 29 13:24:02 2009
@@ -22,6 +22,7 @@
 import org.apache.kato.image.KatoException;
 import org.apache.kato.java.JavaClass;
 import org.apache.kato.java.JavaLocation;
+import org.apache.kato.java.JavaObject;
 import org.apache.kato.java.JavaRuntime;
 import org.apache.kato.java.JavaStackFrame;
 import org.apache.kato.java.JavaThread;
@@ -77,8 +78,14 @@
 				}
 					
 				found = true;
-				out.println("Found JSP:  "+ jsp.getName() );
-				out.println("JavaThread: ");
+				out.println("Found JSP:  "+ jsp.getName() + ", instances: ");
+				
+				List<JavaObject> instances = KatoSearch.findInstances(runtime, jsp);
+				
+				for (JavaObject instance : instances) {
+					out.println("\t0x"+Long.toHexString(instance.getID().getAddress()));
+				}
+				out.println("\nJavaThread: ");
 				
 				List<JavaThread> threads = KatoSearch.findClassInThreads(runtime, jsp);
 				



Mime
View raw message