cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos M. S. Bento Nogueira" <cm...@student.dei.uc.pt>
Subject Interpreting cocoon profiler results
Date Sun, 04 Sep 2005 18:10:27 GMT
Hello all :)

I'm using Cocoon Profiler to check some performance results but i'm having 
some difficulties interpreting the results.

It seems ,for instance, that having the caching mechanism turned on or off
on a pipeline that generates pdf doesn't make any difference in the 
generation time.

Generate PDF pipeline
<map:pipeline type="profile-caching">

<map:match pattern="doc.pdf">
<map:generate type="jx" 
src="context://reports/forms/reports_success_jx.xml"/>
<map:transform src="context://reports/resources/page2fo.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>

<map:match pattern="*.css">
<map:read src="{1}.css" mime-type="text/css"/>
</map:match>

<map:match pattern="*.js">
<map:read src="{1}.js" mime-type="text/javascript"/>
</map:match>

</map:pipeline>

It also seems that on a pipeline that uses cforms the only advantage of 
caching is avoiding loading coutless times the js and css from the 
mattkreuse library. I believe this is the behaviour i'm seeing because 
when having the pipeline caching on, the profiler doesn't report load 
times of the associated css an js files of the cforms.

The pipelines i'm using are

<!-- Loading cforms widgets -->
<map:pipeline type="profile-caching">
<map:match pattern="form1.flow">
<map:call function="handleForm">
<map:parameter name="function" value="form1"/>
<map:parameter name="form-definition" value="forms/form1.xml"/>
</map:call>
</map:match>

<map:match pattern="do-*.flow">
<map:call function="do_{1}"/>
</map:match>

<map:match pattern="*.continue">
<map:call continuation="{1}"/>
</map:match>

<map:match pattern="continue">
<map:call continuation="{request-param:continuation-id}"/>
</map:match>

</map:pipeline>



<!-- displaying the cform ... -->
<map:pipeline type="profile-caching">

<map:match pattern="*-display-pipeline.jx">
<map:generate type="jx" src="forms/{1}_template_action.xml"/>
<map:transform type="i18n">
 	<!--map:parameter name="locale" value="en-US"/-->
</map:transform>
<map:call resource="simple-page2html">
<map:parameter name="file" value="forms/{1}_template_action.xml"/>
</map:call>
<map:transform src="resources/forms-samples-styling.xsl"/>
<map:serialize/>
</map:match>

</map:pipeline>



TIA,
CarlosN.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message