From kato-commits-return-333-apmail-incubator-kato-commits-archive=incubator.apache.org@incubator.apache.org Fri May 29 13:24:12 2009 Return-Path: Delivered-To: apmail-incubator-kato-commits-archive@minotaur.apache.org Received: (qmail 89341 invoked from network); 29 May 2009 13:24:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 May 2009 13:24:12 -0000 Received: (qmail 73830 invoked by uid 500); 29 May 2009 13:24:25 -0000 Delivered-To: apmail-incubator-kato-commits-archive@incubator.apache.org Received: (qmail 73814 invoked by uid 500); 29 May 2009 13:24:25 -0000 Mailing-List: contact kato-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kato-dev@incubator.apache.org Delivered-To: mailing list kato-commits@incubator.apache.org Received: (qmail 73804 invoked by uid 99); 29 May 2009 13:24:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2009 13:24:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2009 13:24:22 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DB5E02388873; Fri, 29 May 2009 13:24:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: kato-commits@incubator.apache.org From: monteith@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090529132402.DB5E02388873@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 @@ + 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 instances = KatoSearch.findInstances(runtime, jsp); + + for (JavaObject instance : instances) { + out.println("\t0x"+Long.toHexString(instance.getID().getAddress())); + } + out.println("\nJavaThread: "); List threads = KatoSearch.findClassInThreads(runtime, jsp);