Skip to content

Commit a7c0009

Browse files
authored
Merge pull request #1016 from evolvedbinary/profiling-pragma
Add exist:profiling pragma
2 parents 26e9323 + 57ced81 commit a7c0009

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/xar-resources/data/xquery/xquery.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,16 @@
883883
<programlisting language="xml" xlink:href="listings/listing-36.xml"/>
884884
</listitem>
885885
</varlistentry>
886+
<varlistentry>
887+
<term> <code>exist:profiling</code> </term>
888+
<listitem>
889+
<para>Enables profiling for a query and logs the results.
890+
For example:</para>
891+
<programlisting>(# exist:profiling enabled=yes verbosity=10 logger=xquery.profiling #) { //some/path/expression }</programlisting>
892+
<para>This enables the profiler for the expression enclosed in curly braces and
893+
prints profiling information to the xquery.profiling logger (e.g. profile.log):</para>
894+
</listitem>
895+
</varlistentry>
886896
<varlistentry>
887897
<term> <code>exist:batch-transaction</code> </term>
888898
<listitem>

0 commit comments

Comments
 (0)