Im trying to Optimize an xslt stylescheet using saxon as profiler. I would to get (in the output profile.xml) also information about the intern functions call (like copy-of, substring ...) rather than just on the template level.
Any help is welcome.
On 01/09/2011 11:54, El Mokhtar Hamidi wrote:
> Im trying to Optimize an xslt stylescheet using saxon as profiler. I
> would to get (in the output profile.xml) also information about the
> intern functions call (like copy-of, substring ...) rather than just
> on the template level.
> Any help is welcome.
Feel free to modify the TimedTraceListener to collect the additional
data. It receives notification of very fine-grained events, but ignores
all events other than entry/exit to templates and functions.
However, the resulting data might not be very informative, because of
lazy evaluation. For example, if evaluating a variable is expensive,
that will appear as the cost of evaluating the first instruction that
refers to the variable. (This effect applies even to the current profile
at template/function level, since a function sometimes returns an
iterator and the real cost of evaluating the function only occurs when
the iterator is processed).
Get latest updates about Open Source Projects, Conferences and News.