cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Zehrer" <Zeh...@optimal-systems.de>
Subject AW: [Summary] Profiling with Cocoon 2.1
Date Thu, 11 Jul 2002 11:01:07 GMT
That works perfectly, these directions should go to the documentation!
Thank you Reinhard! Thanks to anyone involved for the profiling
implementation, it's really usefull.

Michael

-----Urspr√ľngliche Nachricht-----
Von: Reinhard Poetz [mailto:reinhard_poetz@gmx.net]
Gesendet: Mittwoch, 10. Juli 2002 14:22
An: cocoon-users@xml.apache.org
Cc: cocoon-docs@xml.apache.org
Betreff: [Summary] Profiling with Cocoon 2.1


Hi Michael,

I use Cocoon2.1dev (I checked it out last week). As it works
successfully
for me I wrote a summary using my notes I was taking during activating
profiling - please try it. If you have problems please respond to
cocoon-docs@xml.apache.org too)

                       - o -

Summary: Profiling with Cocoon 2.1
----------------------------------

- make sure you use a current Cocoon 2.1 (CVS or nightly build)

- uncommented <profiler/> (cocoon.xconf)

- add the necessary pipeline *components* (sitemap.xmap)
  <map:pipelines default="caching">
	<map:pipeline name="caching"

src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipelin
e"/>
	<map:pipeline name="noncaching"

src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipe
line
"/>
	<map:pipeline name="profile-caching"

src="org.apache.cocoon.components.profiler.ProfilingCachingProcessingPip
elin
e"/>
	<map:pipeline name="profile-noncaching"

src="org.apache.cocoon.components.profiler.ProfilingNonCachingProcessing
Pipe
line"/>
  </map:pipelines>

  (the last two pipline-elements activate profiling)

- set the right type at the pipline you want to watch (sitemap.xmap)
  e.g. <map:pipeline type="profile-caching">

- add the profiler generator (sitemap.xmap)
  <map:generator name="profiler"
src="org.apache.cocoon.components.profiler.ProfilerGenerator"/>

- sitemap.xmap (add a pipeline using the ProfilerGenerator)
  <map:match pattern="profiler">
	<map:generate type="profiler"/>
	<map:serialize type="xml"/>
  </map:match>

- call
http://<your-servlet-container>:<your-port>/<path-to-profiler>/profiler


Regards,
Reinhard





> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> Sent: Wednesday, July 10, 2002 6:08 AM
> To: cocoon-users@xml.apache.org
> Subject: RE: Profiling
>
>
> > From: Michael Zehrer [mailto:Zehrer@optimal-systems.de]
> >
> > Hi Vadim,
> >
> > It's 2.1, I configured cocoon.xconf (ucommented <profiler/>) and
> > activated the Profiling pipelines in sitemap.xmap.
> >
> > Then I constructed a generator that should show me the results, but
> all
> > I get is:
> >
> >   <?xml version="1.0" encoding="UTF-8" ?>
> >   <profilerinfo xmlns="http://apache.org/cocoon/profiler/1.0"
> > date="04.07.2002 15:24:51" />
> >
> > I think there's something wrong with my generator/pipeline for
> > profiling, can you give me an example?
>
> No, I can't. I don't work with 2.1 ATM.
>
> Vadim
>
> >
> >
> > Thanks, Michael
> >
> > -----Urspr√ľngliche Nachricht-----
> > Von: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> > Gesendet: Mittwoch, 3. Juli 2002 18:08
> > An: cocoon-users@xml.apache.org
> > Betreff: RE: Profiling
> >
> >
> > > From: Michael Zehrer [mailto:Zehrer@optimal-systems.de]
> > >
> > > Hi list,
> > >
> > > what do I have to do to turn on profiling in the actual cvs
version?
> > How
> >
> > 2.1 or 2.0.3? 2.1 has one component less configured in the
> cocoon.xconf.
> >
> >
> > > ist profiling implemented in general?
> >
> > Read cocoon.xconf first, it outlines components used. Then modify
> > sitemap.xmap to include pipeline which will render results of
> profiling.
> >
> >
> > Regards,
> > Vadim
> >
> >
> > > Cheers, Michael
> > >
> >
> >
> >
---------------------------------------------------------------------
> > Please check that your question  has not already been answered in
the
> > FAQ before posting.
<http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:
<cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:
<cocoon-users-help@xml.apache.org>
> >
> >
> >
---------------------------------------------------------------------
> > Please check that your question  has not already been answered in
the
> > FAQ before posting.
<http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:
<cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:
<cocoon-users-help@xml.apache.org>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message