You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Lars Huttar <la...@sil.org> on 2007/01/09 18:49:50 UTC
viewing intermediate XML with profiler (was Re: Running Cocoon in
debugger)
On 1/4/2007 11:49 PM, Mark Lundquist wrote (on users@cocoon.apache.org):
>> Next step is to figure out how to use this to trace data flow through
>> the sitemap.
>
> You might take a look here:
>
> http://cocoon.apache.org/2.1/userdocs/concepts/profiler.html
>
I've been looking into the profiler, and indeed have used it before for
profiling (finding out how long various pipelines take).
What I don't see is how to view the XML that passes from one component
to another.
http://cocoon.apache.org/2.1/userdocs/concepts/profiler.html says you
can do this but doesn't tell how.
Ah, wait... I get it. By clicking on "422ms" (how intuitive!), or "xslt
(testpage.xsl)" (better), you get the XML output.
Then you dig through the sample code, and discover that the profile
generator takes URL parameters (not sitemap parameters) "result" and
"component" that tell it to emit information about a particular output
of a particular component.
E.g.
http://localhost/samples/blocks/profiler/profile.html?key=-9147137934425539743&result=0&component=1&cocoon-view=content
I guess the profile2.html view makes this a little more obvious, but
only after you discover that the "0" under "Last" is a link, and that it
might be something worthwhile to click on!
http://cocoon.apache.org/2.1/userdocs/profile-generator.html has some of
this information; it would be good to have a link from
http://cocoon.apache.org/2.1/userdocs/concepts/profiler.html to the
latter. I've added a comment to that page in Daisy (does anybody read
those comments?)
It would also be helpful to put an explanatory note about that on the
sample page:
http://localhost/samples/blocks/profiler/profile.html?key=-9147137934425539743
could say at the top, "Click on a time to view the relevant XML result
from that component."
I agree, this is very useful functionality, but not very easy to
discover. Hence its value for newcomers, who need it most, is greatly
diminished.
I think I would like to rework this sample to be more illuminating, and
submit it for committing. I would also be happy to work on improving the
documentation pages.
Can somebody tell me the process for getting changes approved and
committed? I'm familiar with SVN, just don't know who to talk to in the
Cocoon project.
Lars
Re: viewing intermediate XML with profiler (was Re: Running Cocoon in debugger)
Posted by David Crossley <cr...@apache.org>.
Lars, would you please send that last message again as plain-text.
It was html-formatted.
-David
Re: viewing intermediate XML with profiler (was Re: Running Cocoon
in debugger)
Posted by Reinhard Poetz <re...@apache.org>.
Lars Huttar wrote:
> OK... I've registered, as you surmised, and I guess I need the
> doc-editors role.
done
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------
Re: viewing intermediate XML with profiler (was Re: Running Cocoon
in debugger)
Posted by Lars Huttar <la...@sil.org>.
On 1/9/2007 4:34 PM, Mark Lundquist wrote:
>
> On Jan 9, 2007, at 2:22 PM, Mark Lundquist wrote:
>
>> [...] You'll need to spend a little time in the docs area at
>> cocoon.zones.apache.org to orient yourself, and Helma or Reinhard or
>> somebody can hook you up with a Diasy login with "doc-editor"
>> privileges, then you are set.
>
> I think, to initially set up the account you select "Register" from
> the "User:" menubar item and create up your own account. (Maybe
> you've done that already, if you've submitted comments... I think
> having a registered user id is what enables you to comment? Not
> sure...) Anyway, once you're registered, then you just give a shout
> to the list, "hey, I need the doc-editors role".
>
> cheers,
> —ml—
>
>
OK... I've registered, as you surmised, and I guess I need the
doc-editors role.
Unless somebody would rather I wrote it up and submitted it to a
doc-editor. Whatever.
Lars
Re: viewing intermediate XML with profiler (was Re: Running Cocoon in debugger)
Posted by Mark Lundquist <ml...@wrinkledog.com>.
On Jan 9, 2007, at 2:22 PM, Mark Lundquist wrote:
> [...] You'll need to spend a little time in the docs area at
> cocoon.zones.apache.org to orient yourself, and Helma or Reinhard or
> somebody can hook you up with a Diasy login with "doc-editor"
> privileges, then you are set.
I think, to initially set up the account you select "Register" from the
"User:" menubar item and create up your own account. (Maybe you've
done that already, if you've submitted comments... I think having a
registered user id is what enables you to comment? Not sure...)
Anyway, once you're registered, then you just give a shout to the list,
"hey, I need the doc-editors role".
cheers,
—ml—
Re: viewing intermediate XML with profiler (was Re: Running Cocoon in debugger)
Posted by Mark Lundquist <ml...@wrinkledog.com>.
Hi Lars,
On Jan 9, 2007, at 9:49 AM, Lars Huttar wrote:
> Ah, wait... I get it. By clicking on "422ms" (how intuitive!), or
> "xslt (testpage.xsl)" (better), you get the XML output.
> Then you dig through the sample code, and discover that the profile
> generator takes URL parameters (not sitemap parameters) "result" and
> "component" that tell it to emit information about a particular output
> of a particular component.
> E.g.
> http://localhost/samples/blocks/profiler/profile.html?key=
> -9147137934425539743&result=0&component=1&cocoon-view=content
> I guess the profile2.html view makes this a little more obvious, but
> only after you discover that the "0" under "Last" is a link, and that
> it might be something worthwhile to click on!
If you want to improve the profiler web interface and you have the time
to do it, please do it and drop a patch on JIRA (see below)...
> http://cocoon.apache.org/2.1/userdocs/profile-generator.html has some
> of this information; it would be good to have a link from
> http://cocoon.apache.org/2.1/userdocs/concepts/profiler.html to the
> latter. I've added a comment to that page in Daisy (does anybody read
> those comments?)
Not sure... :-/
> It would also be helpful to put an explanatory note about that on the
> sample page:
> http://localhost/samples/blocks/profiler/profile.html?key=
> -9147137934425539743
> could say at the top, "Click on a time to view the relevant XML result
> from that component."
>
> I agree, this is very useful functionality, but not very easy to
> discover. Hence its value for newcomers, who need it most, is greatly
> diminished.
> I think I would like to rework this sample to be more illuminating,
> and submit it for committing.
I think ideally if you could make the profiler page itself more
intuitive and/or add some explanatory text there (maybe)... then if
more is needed on the sample page, it could be added. In other words,
if the profiler page sucks, let's not just leave it that way and rely
on the sample page to explain it, instead let's improve it as much as
possible and if it still isn't self-explanatory, enhance the sample to
bridge the gap.
> I would also be happy to work on improving the documentation pages.
That would be great, too. You'll need to spend a little time in the
docs area at cocoon.zones.apache.org to orient yourself, and Helma or
Reinhard or somebody can hook you up with a Diasy login with
"doc-editor" privileges, then you are set.
> Can somebody tell me the process for getting changes approved and
> committed?
Right here: http://cocoon.apache.org/2.1/1177.html
As for getting them "approved", it seems like it's more of a "do first"
approach in this community. You'll have to show them what you've got,
in the form of a patch... and then, hopefully someday the patch will be
accepted. You don't need any pre-approval to submit a patch, but
neither is there any guarantee it'll be accepted. Sometimes further
discussion is warranted, or the patch will be accepted w/ some
modifications. I have a few patches in limbo on JIRA that I'd very
much like to see accepted, so maybe it's time I made some noise :-)
In any case, you're to be commended for wanting to improve both the
code and the docs together :-) :-) :-)
best regards,
—ml—