Skip to content

Add exist:profiling pragma #1016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/main/xar-resources/data/xquery/xquery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,16 @@
<programlisting language="xml" xlink:href="listings/listing-36.xml"/>
</listitem>
</varlistentry>
<varlistentry>
<term> <code>exist:profiling</code> </term>
<listitem>
<para>Enables profiling for a query and logs the results.
For example:</para>
<programlisting>(# exist:profiling enabled=yes verbosity=10 logger=xquery.profiling #) { //some/path/expression }</programlisting>
<para>This enables the profiler for the expression enclosed in curly braces and
prints profiling information to the xquery.profiling logger (e.g. profile.log):</para>
</listitem>
</varlistentry>
<varlistentry>
<term> <code>exist:batch-transaction</code> </term>
<listitem>
Expand Down