You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vadim Gritsenko <vg...@hns.com> on 2001/07/05 15:24:34 UTC
Profiler for C2
Hello,
I do have something which looks like and performs like a profiler :)
It can report time spent by every step of pipeline; it's built using
SAXConnector. Is there anybody here interested in this?
If yes, shall I commit it to CVS? (what branch?)
Or, I can post it to mail list.
Regards,
Vadim
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Dealing with XML Fragments in logicsheets
Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Thomas Klement a écrit :
>
> Hi,
>
> I wonder if there is a way to process xml fragments with logicsheets. For
> instance, I want to insert the fragment "person" in the following example
> into a xml database using a logicsheet (that processes xmldb:insertFragment)
> in conjunction with a helper class.
>
> <xmldb:insertFragment collection="xmldb:dbxml:///db/mydb2">
> <person>
> <fname>Thomas</fname>
> <lname>Klement</lname>
> <email type="work">klement@gmd.de</email>
> <address type="work">D-64293 Darmstadt</address>
> </person>
> </xmldb:insertFragment>
>
> The problem is "how to assign a parameter of this helper class to transport
> the content below the person tag". I didn't find any example of that.
>
> Can anyone help, please?
>
By "fragment", do you mean a DOM DocumentFragment ?
If so, your xmldb:insertFragment can change the XSP contentHandler to a
DOMBuilder, apply templates on its content so that it gets converted to
a DOM, and then restore the XSP contentHandler and insert the built DOM
into the database.
> Cheers,
> Thomas
>
> ---------
> Thomas Klement
> GMD - German National Research Center
> for Information Technology
> GMD-IPSI
> PO-Box 10 01 38
> D-64201 Darmstadt
>
--
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Dealing with XML Fragments in logicsheets
Posted by Thomas Klement <kl...@gmd.de>.
Hi,
I wonder if there is a way to process xml fragments with logicsheets. For
instance, I want to insert the fragment "person" in the following example
into a xml database using a logicsheet (that processes xmldb:insertFragment)
in conjunction with a helper class.
<xmldb:insertFragment collection="xmldb:dbxml:///db/mydb2">
<person>
<fname>Thomas</fname>
<lname>Klement</lname>
<email type="work">klement@gmd.de</email>
<address type="work">D-64293 Darmstadt</address>
</person>
</xmldb:insertFragment>
The problem is "how to assign a parameter of this helper class to transport
the content below the person tag". I didn't find any example of that.
Can anyone help, please?
Cheers,
Thomas
---------
Thomas Klement
GMD - German National Research Center
for Information Technology
GMD-IPSI
PO-Box 10 01 38
D-64201 Darmstadt
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Profiler for C2
Posted by Vadim Gritsenko <vg...@hns.com>.
Dear cocooners,
Here is first try to implement profiler, checked in into HEAD branch. To use:
1) Configure cocoon.xconf:
<event-pipeline class="org.apache.cocoon.components.profiler.ProfilingNonCachingEventPipeline"/>
<sax-connector class="org.apache.cocoon.components.profiler.ProfilingSAXConnector"/>
<profiler/>
2) Configure sitemap:
<map:generators default="file">
...
<map:generator name="profile" src="org.apache.cocoon.components.profiler.ProfilerGenerator" label="content"/>
</map:generators>
...
<map:match pattern="profile">
<map:generate type="profile"/>
<map:transform type="xslt" src="stylesheets/system/profile2html.xsl"/>
<map:serialize/>
</map:match>
3) Try http://localhost/cocoon/profile several times
Feedback is really appreciated,
Thanks,
Vadim
> -----Original Message-----
> From: Berin Loritsch [mailto:bloritsch@apache.org]
> Sent: Thursday, July 05, 2001 10:36
> To: cocoon-dev@xml.apache.org
> Subject: Re: Profiler for C2
>
>
> Vadim Gritsenko wrote:
> >
> > Berin,
> >
> > One question though...
> >
> > It constists from:
> > - central profiler component,
> > - sax connector,
> > - extended event pipeline,
> > - profiler generator,
> > - and one stylesheet to present results :)
> >
> > Shall I put everything in one package (**.cocoon.profiler), or split
> > across packages (**.generation, **.pipeline, **.saxconnector)?
> >
> > PS: some actions should be added later to control profiler
>
> If there are a number of components to the one solution, it would probably
> be better to place them in "org.apache.cocoon.components.profiler" than
> spreading them throughout the other packages. It is somewhat of a special
> case.
>
> >
> > Vadim
> >
> > > -----Original Message-----
> > > From: Berin Loritsch [mailto:bloritsch@apache.org]
> > > Sent: Thursday, July 05, 2001 9:30
> > > To: cocoon-dev@xml.apache.org
> > > Subject: Re: Profiler for C2
> > >
> > >
> > > Vadim Gritsenko wrote:
> > > >
> > > > Hello,
> > > >
> > > > I do have something which looks like and performs like a profiler :)
> > > > It can report time spent by every step of pipeline; it's built using
> > > > SAXConnector. Is there anybody here interested in this?
> > >
> > > Sure. Commit it to the 2.1 branch, and we can vote to include it in
> > > the 2.0 branch.
> > >
> > > >
> > > > If yes, shall I commit it to CVS? (what branch?)
> > > > Or, I can post it to mail list.
> > > >
> > > > Regards,
> > > > Vadim
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Profiler for C2
Posted by Berin Loritsch <bl...@apache.org>.
Vadim Gritsenko wrote:
>
> Berin,
>
> One question though...
>
> It constists from:
> - central profiler component,
> - sax connector,
> - extended event pipeline,
> - profiler generator,
> - and one stylesheet to present results :)
>
> Shall I put everything in one package (**.cocoon.profiler), or split
> across packages (**.generation, **.pipeline, **.saxconnector)?
>
> PS: some actions should be added later to control profiler
If there are a number of components to the one solution, it would probably
be better to place them in "org.apache.cocoon.components.profiler" than
spreading them throughout the other packages. It is somewhat of a special
case.
>
> Vadim
>
> > -----Original Message-----
> > From: Berin Loritsch [mailto:bloritsch@apache.org]
> > Sent: Thursday, July 05, 2001 9:30
> > To: cocoon-dev@xml.apache.org
> > Subject: Re: Profiler for C2
> >
> >
> > Vadim Gritsenko wrote:
> > >
> > > Hello,
> > >
> > > I do have something which looks like and performs like a profiler :)
> > > It can report time spent by every step of pipeline; it's built using
> > > SAXConnector. Is there anybody here interested in this?
> >
> > Sure. Commit it to the 2.1 branch, and we can vote to include it in
> > the 2.0 branch.
> >
> > >
> > > If yes, shall I commit it to CVS? (what branch?)
> > > Or, I can post it to mail list.
> > >
> > > Regards,
> > > Vadim
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: cocoon-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Profiler for C2
Posted by giacomo <gi...@apache.org>.
On Sat, 7 Jul 2001, Vadim Gritsenko wrote:
> Giacomo,
>
> I went per Berin's suggestion and checked in everything into one
> package, cocoon.components.profiler. Hope this is OK too.
Yes it is ok, I was too late :)
Giacomo
>
> Vadim
>
> > -----Original Message-----
> > From: giacomo [mailto:giacomo@apache.org]
> > Sent: Friday, July 06, 2001 14:42
> > To: cocoon-dev@xml.apache.org
> > Subject: RE: Profiler for C2
> >
> >
> > On Thu, 5 Jul 2001, Vadim Gritsenko wrote:
> >
> > > Berin,
> > >
> > > One question though...
> > >
> > > It constists from:
> > > - central profiler component,
> > > - sax connector,
> > > - extended event pipeline,
> > > - profiler generator,
> > > - and one stylesheet to present results :)
> > >
> > > Shall I put everything in one package (**.cocoon.profiler), or split
> > > across packages (**.generation, **.pipeline, **.saxconnector)?
> >
> > I suggest you put it in the corresponding packages and name it
> > consistently (ProfilingGeneator, ProfilingSAXConnector, ..., or alike).
> >
> > Giacomo
> >
> > >
> > > PS: some actions should be added later to control profiler
> > >
> > > Vadim
> > >
> > > > -----Original Message-----
> > > > From: Berin Loritsch [mailto:bloritsch@apache.org]
> > > > Sent: Thursday, July 05, 2001 9:30
> > > > To: cocoon-dev@xml.apache.org
> > > > Subject: Re: Profiler for C2
> > > >
> > > >
> > > > Vadim Gritsenko wrote:
> > > > >
> > > > > Hello,
> > > > >
> > > > > I do have something which looks like and performs like a profiler :)
> > > > > It can report time spent by every step of pipeline; it's built using
> > > > > SAXConnector. Is there anybody here interested in this?
> > > >
> > > > Sure. Commit it to the 2.1 branch, and we can vote to include it in
> > > > the 2.0 branch.
> > > >
> > > > >
> > > > > If yes, shall I commit it to CVS? (what branch?)
> > > > > Or, I can post it to mail list.
> > > > >
> > > > > Regards,
> > > > > Vadim
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > >
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Profiler for C2
Posted by Vadim Gritsenko <vg...@yahoo.com>.
Giacomo,
I went per Berin's suggestion and checked in everything into one
package, cocoon.components.profiler. Hope this is OK too.
Vadim
> -----Original Message-----
> From: giacomo [mailto:giacomo@apache.org]
> Sent: Friday, July 06, 2001 14:42
> To: cocoon-dev@xml.apache.org
> Subject: RE: Profiler for C2
>
>
> On Thu, 5 Jul 2001, Vadim Gritsenko wrote:
>
> > Berin,
> >
> > One question though...
> >
> > It constists from:
> > - central profiler component,
> > - sax connector,
> > - extended event pipeline,
> > - profiler generator,
> > - and one stylesheet to present results :)
> >
> > Shall I put everything in one package (**.cocoon.profiler), or split
> > across packages (**.generation, **.pipeline, **.saxconnector)?
>
> I suggest you put it in the corresponding packages and name it
> consistently (ProfilingGeneator, ProfilingSAXConnector, ..., or alike).
>
> Giacomo
>
> >
> > PS: some actions should be added later to control profiler
> >
> > Vadim
> >
> > > -----Original Message-----
> > > From: Berin Loritsch [mailto:bloritsch@apache.org]
> > > Sent: Thursday, July 05, 2001 9:30
> > > To: cocoon-dev@xml.apache.org
> > > Subject: Re: Profiler for C2
> > >
> > >
> > > Vadim Gritsenko wrote:
> > > >
> > > > Hello,
> > > >
> > > > I do have something which looks like and performs like a profiler :)
> > > > It can report time spent by every step of pipeline; it's built using
> > > > SAXConnector. Is there anybody here interested in this?
> > >
> > > Sure. Commit it to the 2.1 branch, and we can vote to include it in
> > > the 2.0 branch.
> > >
> > > >
> > > > If yes, shall I commit it to CVS? (what branch?)
> > > > Or, I can post it to mail list.
> > > >
> > > > Regards,
> > > > Vadim
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Profiler for C2
Posted by giacomo <gi...@apache.org>.
On Thu, 5 Jul 2001, Vadim Gritsenko wrote:
> Berin,
>
> One question though...
>
> It constists from:
> - central profiler component,
> - sax connector,
> - extended event pipeline,
> - profiler generator,
> - and one stylesheet to present results :)
>
> Shall I put everything in one package (**.cocoon.profiler), or split
> across packages (**.generation, **.pipeline, **.saxconnector)?
I suggest you put it in the corresponding packages and name it
consistently (ProfilingGeneator, ProfilingSAXConnector, ..., or alike).
Giacomo
>
> PS: some actions should be added later to control profiler
>
> Vadim
>
> > -----Original Message-----
> > From: Berin Loritsch [mailto:bloritsch@apache.org]
> > Sent: Thursday, July 05, 2001 9:30
> > To: cocoon-dev@xml.apache.org
> > Subject: Re: Profiler for C2
> >
> >
> > Vadim Gritsenko wrote:
> > >
> > > Hello,
> > >
> > > I do have something which looks like and performs like a profiler :)
> > > It can report time spent by every step of pipeline; it's built using
> > > SAXConnector. Is there anybody here interested in this?
> >
> > Sure. Commit it to the 2.1 branch, and we can vote to include it in
> > the 2.0 branch.
> >
> > >
> > > If yes, shall I commit it to CVS? (what branch?)
> > > Or, I can post it to mail list.
> > >
> > > Regards,
> > > Vadim
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: cocoon-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Profiler for C2
Posted by Vadim Gritsenko <vg...@hns.com>.
Berin,
One question though...
It constists from:
- central profiler component,
- sax connector,
- extended event pipeline,
- profiler generator,
- and one stylesheet to present results :)
Shall I put everything in one package (**.cocoon.profiler), or split
across packages (**.generation, **.pipeline, **.saxconnector)?
PS: some actions should be added later to control profiler
Vadim
> -----Original Message-----
> From: Berin Loritsch [mailto:bloritsch@apache.org]
> Sent: Thursday, July 05, 2001 9:30
> To: cocoon-dev@xml.apache.org
> Subject: Re: Profiler for C2
>
>
> Vadim Gritsenko wrote:
> >
> > Hello,
> >
> > I do have something which looks like and performs like a profiler :)
> > It can report time spent by every step of pipeline; it's built using
> > SAXConnector. Is there anybody here interested in this?
>
> Sure. Commit it to the 2.1 branch, and we can vote to include it in
> the 2.0 branch.
>
> >
> > If yes, shall I commit it to CVS? (what branch?)
> > Or, I can post it to mail list.
> >
> > Regards,
> > Vadim
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Profiler for C2
Posted by Berin Loritsch <bl...@apache.org>.
Vadim Gritsenko wrote:
>
> Hello,
>
> I do have something which looks like and performs like a profiler :)
> It can report time spent by every step of pipeline; it's built using
> SAXConnector. Is there anybody here interested in this?
Sure. Commit it to the 2.1 branch, and we can vote to include it in
the 2.0 branch.
>
> If yes, shall I commit it to CVS? (what branch?)
> Or, I can post it to mail list.
>
> Regards,
> Vadim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org