cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Block Docs, Re: svn commit: r503964 - in /cocoon/trunk/blocks/cocoon-profiler/cocoon-profiler-impl/src/main: java/org/apache/cocoon/components/profiler/ resources/META-INF/cocoon/avalon/
Date Wed, 07 Feb 2007 13:48:53 GMT
Simone Gianni wrote:
> Hi all,
> I was playing with the profiler when I noticed the way the
> ProfilingXMLPipe works. Every component is given the opportunity to
> stream its sax events, they are buffered in a DOM, the DOM is then used
> (to display the intermediate XML and) to stream SAX events to the next
> component. This behavior is different from how a pipeline normally
> works, and can cause strange errors (or mask errors that will appear
> when the profiler is removed).
> 
> So I implemented another class, the ProfilingSAXPipe, that does all the
> ProfilingXMLPipe does, but stream the sax events directly, without
> storing them in a DOM and doing it step by step. Time calculation is
> obviously more complicated, and I'm not yet sure it's precise enough,
> but seems to be consistent with the default implementation.
> 
> To activate it pass a sax-stream="true" on the pipeline definition, or
> use the profile-caching-sax and profile-noncaching-sax pipeline types.
> 
> Can someone point me to the right documentation branch where I should
> update documentation?

I'd guess it should be "cdocs: Profiler Block", but it is not listed on:

   http://cocoon.zones.apache.org/daisy/

Not sure how easy/hard it is to add it there... Reinhard?

Vadim

> Simone
> 
> simoneg@apache.org wrote:
>> Author: simoneg
>> Date: Mon Feb  5 18:46:03 2007
>> New Revision: 503964
>>
>> URL: http://svn.apache.org/viewvc?view=rev&rev=503964
>> Log:
>> Added another implemetation of profiling pipe respecting the sax streaming contract


Mime
View raw message