From 57ced817125a3c5b2888d41655adf1193dc06068 Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Sat, 21 Sep 2024 15:26:04 +0100 Subject: [PATCH] [doc] Add exist:profiling pragma --- src/main/xar-resources/data/xquery/xquery.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/xar-resources/data/xquery/xquery.xml b/src/main/xar-resources/data/xquery/xquery.xml index 9f458c86..b6e1779f 100644 --- a/src/main/xar-resources/data/xquery/xquery.xml +++ b/src/main/xar-resources/data/xquery/xquery.xml @@ -883,6 +883,16 @@ + + exist:profiling + + Enables profiling for a query and logs the results. + For example: + (# exist:profiling enabled=yes verbosity=10 logger=xquery.profiling #) { //some/path/expression } + This enables the profiler for the expression enclosed in curly braces and + prints profiling information to the xquery.profiling logger (e.g. profile.log): + + exist:batch-transaction