Re: [xsl] How is memory allocated in recursive XSLT templates?

Subject: Re: [xsl] How is memory allocated in recursive XSLT templates?
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Thu, 3 May 2007 20:00:31 -0700
If you're using Saxon, the best way of getting fine-grained instrumentation
is to use the TimerTraceListener, which can be activated using -TP from the
command line. This writes a file containing timing information; there's a
stylesheet called analyze.xsl in the samples folder which allows you to
summarize this information and determine how much time was spent in each
template or function.


This is very nice.

Are only template/functions of the main stylesheet module accounted for?

What about template/functions from imported stylesheets?


-- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play


On 5/3/07, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>
> I think I would prefer an extension function within the XSLT
> itself rather than from the command line, because then I
> would be able to note the time immediately before and after
> the function in question.

If you're using Saxon, the best way of getting fine-grained instrumentation
is to use the TimerTraceListener, which can be activated using -TP from the
command line. This writes a file containing timing information; there's a
stylesheet called analyze.xsl in the samples folder which allows you to
summarize this information and determine how much time was spent in each
template or function.

Java's timing information is not very precise; you will only get meaningful
figures for a template or function that's executed several hundred times.

Details at
http://www.saxonica.com/documentation/using-xsl/performanceanalysis.html

Michael Kay
http://www.saxonica.com/

Current Thread