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