Appendix D. Compile Options Policy Configuration; Profiling Overview - IBM WebSphere XS40 Command Reference Manual

Datapower xml security gateway
Table of Contents

Advertisement

Appendix D. Compile Options Policy configuration

Profiling overview

With profiling enabled, the appliance measures and reports processing times for
the profiled style sheets.
The appliance reports time measurements as a percentage of the total time spent
processing the document. As the control flow of an XSLT program is not well
defined or necessarily straightforward, those totals may not add up to 100% and in
some cases the same time may count toward multiple regions of the style sheet.
Measurements fall into the following categories.
Global Variables
Templates
Special Entities
User-Defined Regions
The following XSLT example demonstrates both techniques
<xsl:stylesheet
© Copyright IBM Corp. 1999, 2008
The time spent to define each global variable is measured. If the global
variable calls a template or performs an apply-templates, the time spent
executing that template counts toward both the template called and the
global variable.
Time spent in a template does not include the time spent in templates
called by that template. It is a flat measurement of total time spent in that
particular template; one could think of as a stop watch which starts when
the template is entered and is stopped when another template is called;
when the other template returns, the stopwatch resumes measurement.
Certain specially constructed entities are also measured, such as the time
spent gathering key data on the document the first time that key() is
called.
Users may define custom measurement regions with the extension element:
{http://www.datapower.com/extensions}profile
or with the extension attribute of the same name.
The dp:profile extension element measures the time spent in its contents,
and the dp:profile attribute measures the time spent in the instruction it
is found upon.
xmlns:dp="http://www.datapower.com/extensions"
xsl:version="1.0"
xmlns:xsl="...">
<xsl:template match="/">
<!--
Time spent in statements appearing here will show up in the template profile
-->
<xsl:.../>
<dp:profile name="region-1">
1007

Advertisement

Table of Contents
loading

Table of Contents