[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How is memory allocated in recursive XSLT template

Subject: RE: How is memory allocated in recursive XSLT templates?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 3 May 2007 20:44:46 +0100
RE:  How is memory allocated in recursive XSLT template
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.