You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by do...@cocoon.apache.org on 2004/07/09 21:57:23 UTC

[Cocoon Wiki] Updated: Profiling

   Date: 2004-07-09T12:57:23
   Editor: TimLarson <ti...@keow.org>
   Wiki: Cocoon Wiki
   Page: Profiling
   URL: http://wiki.apache.org/cocoon/Profiling

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -8,15 +8,15 @@
 uncomment <profiler/> (cocoon.xconf)
 
 '''Step 3'''[[BR]]
-add the necessary pipeline '''components''' (sitemap.xmap) [#2]
+add the necessary pipeline '''components''' (sitemap.xmap) (See [#2] if you are running an old release.)
 
-{{{
-     <map:pipelines default="caching">
-	<map:pipeline name="caching" src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"/>
-	<map:pipeline name="noncaching" src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline"/>
-	<map:pipeline name="profile-caching" src="org.apache.cocoon.components.profiler.ProfilingCachingProcessingPipeline"/>
-	<map:pipeline name="profile-noncaching" src="org.apache.cocoon.components.profiler.ProfilingNonCachingProcessingPipeline"/>
-     </map:pipelines>
+{{{
+     <map:pipes default="caching">
+	<map:pipe name="caching" src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"/>
+	<map:pipe name="noncaching" src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline"/>
+	<map:pipe name="profile-caching" src="org.apache.cocoon.components.profiler.ProfilingCachingProcessingPipeline"/>
+	<map:pipe name="profile-noncaching" src="org.apache.cocoon.components.profiler.ProfilingNonCachingProcessingPipeline"/>
+     </map:pipes>
 }}}
 
   (the last two pipeline-elements activate profiling)
@@ -27,18 +27,18 @@
 
 '''Step 5'''[[BR]]
  add the profiler generator (sitemap.xmap)
-{{{
-<map:generator name="profiler"
-src="org.apache.cocoon.generation.ProfilerGenerator"/>
+{{{
+<map:generator name="profiler"
+src="org.apache.cocoon.generation.ProfilerGenerator"/>
 }}}
 
 '''Step 6'''[[BR]]
 sitemap.xmap (add a pipeline using the !ProfilerGenerator)
-{{{
-  <map:match pattern="profiler">
-	<map:generate type="profiler"/>
-	<map:serialize type="xml"/>
-  </map:match>
+{{{
+  <map:match pattern="profiler">
+	<map:generate type="profiler"/>
+	<map:serialize type="xml"/>
+  </map:match>
 }}}
 
 '''Step 6'''[[BR]]
@@ -46,4 +46,4 @@
 
 [[Anchor(1)]] : Profiling is also possible with Cocoon 2.0.3 (and earlier?). However the setup procedure is not quite the same: see the Profile Generator docs for more info.
 
-[[Anchor(2)]] : In 2.1.2 this element seems to be map:pipes (instead of map:pipelines) -- [:Mfonsen]
+[[Anchor(2)]] : Before 2.1.2 this element seems to be map:pipelines (instead of map:pipes)