Changes

Jump to navigation Jump to search
67 bytes added ,  17:37, 23 November 2017
no edit summary
This [[Module Library|XQuery Module]] contains various functions to test and profile XQuery code, and to dump information to standard output.
=Conventions=
* {{Code|value}}: Returns the value (default: true).
Helpful notes:
* Profiling might change the execution behavior of your code: An expression that might be executed iteratively will be cached by the profiling function.
* If a value has a compact internal representation, memory consumption will be very low, even if the serialized result may consume much more memory.
* In Java, memory profiling can only be approximative: To improve the measurement, and if the memory option is enabled, main-memory will be garbage-collected before and after evaluation. If you are not interested in the memory consumption, it is advisable to disable this option.
| '''Summary'''
|Measures the time needed to evaluate {{Code|$expr}} and outputs a string to standard error or, if the GUI is used, to the Info View.<br/>An optional {{Code|$label}} may be specified to tag the profiling result. Helpful notes:
* Profiling might change the execution behavior of your code: An expression that might be executed iteratively will be cached by the profiling function.
* If a value has a compact internal representation, evaluation time will be very low, even if it may take a long time to iterate through all results.
|-
| '''Summary'''
|Measures the memory allocated by evaluating {{Code|$expr}} and outputs a string to standard error or, if the GUI is used, to the Info View. An optional {{Code|$label}} may be specified to tag the profiling result. Helpful notes:
* Profiling might change the execution behavior of your code: An expression that might be executed iteratively will be cached by the profiling function.
* If a value has a compact internal representation, memory consumption will be very low, even if the serialized result may consume much more memory.
* In Java, memory profiling can only be approximative: To improve the measurement, main-memory will be garbage-collected before and after evaluation.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu