Changes

Jump to navigation Jump to search
192 bytes removed ,  13:23, 24 May 2018
no edit summary
==prof:track==
 
{{Mark|Introduced with Version 9.0:}}
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|prof:track|$expr expression as item()|item()*}}<br/>{{Func|prof:track|$expr expression as item(), $options as map(*)?|item()*}}
|-
| '''Summary'''
* {{Code|value}}: Include value in result (default: true).
Helpful notes:
* If you are not interested in some of the returned results, you can should disable them to save time and memory by disabling them.
* 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.
=> prof:human()
</pre>
* The function call <code>prof:track((1 to 1000000)[. mod 2 = 0], map { 'time': false() })</code> will return something similar to:
<pre class="brush:xquery">
map {
"memory": 41548400, "time": 34.9921548400,
"value": (2, 4, 6, 8, 10, ...)
}
==prof:time==
 
{{Mark|Updated with Version 9.0:}} {{Code|$cache}} argument removed.
{| width='100%'
==prof:memory==
 
{{Mark|Updated with Version 9.0:}} Renamed (old name: <code>prof:mem</code>); {{Code|$cache}} argument removed.
{| width='100%'
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu