Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 53678 invoked from network); 9 Jan 2007 17:50:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2007 17:50:17 -0000 Received: (qmail 91554 invoked by uid 500); 9 Jan 2007 17:50:23 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 91358 invoked by uid 500); 9 Jan 2007 17:50:22 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 91347 invoked by uid 99); 9 Jan 2007 17:50:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jan 2007 09:50:22 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lars_huttar@sil.org designates 208.145.81.51 as permitted sender) Received: from [208.145.81.51] (HELO smtp1.wsfo.org) (208.145.81.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jan 2007 09:50:13 -0800 Received: from mail.link77.net (mail.link77.net [172.22.0.125]) by smtp1.wsfo.org (8.13.1/8.13.1) with ESMTP id l09HnqP6005482 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 9 Jan 2007 12:49:52 -0500 X-Scanned-By: MIMEDefang 2.54 on 172.22.0.51 X-Scanned-By: RAE MPP/Clamd http://raeinternet.com/mpp X-Scanned-By: This message was scanned by MPP Free Edition (www.messagepartners.com)! Received: from [172.20.3.199] (account lars_huttar@sil.org [172.20.3.199] verified) by mail.link77.net (CommuniGate Pro SMTP 5.0.8) with ESMTPSA id 133160848 for dev@cocoon.apache.org; Tue, 09 Jan 2007 12:49:51 -0500 Message-ID: <45A3D5BE.5010505@sil.org> Date: Tue, 09 Jan 2007 11:49:50 -0600 From: Lars Huttar User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: viewing intermediate XML with profiler (was Re: Running Cocoon in debugger) References: <459D013D.2010903@sil.org> <459D5708.6080203@sil.org> <459D6A06.9090506@tuffmail.com> <459D6F2E.2050007@sil.org> <459D727C.4050105@tuffmail.com> <459D75E4.7040802@sil.org> <459D7793.7080400@sil.org> <459D7877.7000805@tuffmail.com> <459D7BDE.1090800@sil.org> <459D7E12.2070200@tuffmail.com> <459DD8E3.8020901@sil.org> <76b684516a8a320353627a2f20459bfb@comcast.net> In-Reply-To: <76b684516a8a320353627a2f20459bfb@comcast.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 1/4/2007 11:49 PM, Mark Lundquist wrote (on users@cocoon.apache.org): >> Next step is to figure out how to use this to trace data flow through >> the sitemap. > > You might take a look here: > > http://cocoon.apache.org/2.1/userdocs/concepts/profiler.html > I've been looking into the profiler, and indeed have used it before for profiling (finding out how long various pipelines take). What I don't see is how to view the XML that passes from one component to another. http://cocoon.apache.org/2.1/userdocs/concepts/profiler.html says you can do this but doesn't tell how. Ah, wait... I get it. By clicking on "422ms" (how intuitive!), or "xslt (testpage.xsl)" (better), you get the XML output. Then you dig through the sample code, and discover that the profile generator takes URL parameters (not sitemap parameters) "result" and "component" that tell it to emit information about a particular output of a particular component. E.g. http://localhost/samples/blocks/profiler/profile.html?key=-9147137934425539743&result=0&component=1&cocoon-view=content I guess the profile2.html view makes this a little more obvious, but only after you discover that the "0" under "Last" is a link, and that it might be something worthwhile to click on! http://cocoon.apache.org/2.1/userdocs/profile-generator.html has some of this information; it would be good to have a link from http://cocoon.apache.org/2.1/userdocs/concepts/profiler.html to the latter. I've added a comment to that page in Daisy (does anybody read those comments?) It would also be helpful to put an explanatory note about that on the sample page: http://localhost/samples/blocks/profiler/profile.html?key=-9147137934425539743 could say at the top, "Click on a time to view the relevant XML result from that component." I agree, this is very useful functionality, but not very easy to discover. Hence its value for newcomers, who need it most, is greatly diminished. I think I would like to rework this sample to be more illuminating, and submit it for committing. I would also be happy to work on improving the documentation pages. Can somebody tell me the process for getting changes approved and committed? I'm familiar with SVN, just don't know who to talk to in the Cocoon project. Lars