The idea was to test at the higher level all the larger updating functions to know which one to tackle on 1st, sometimes I can't really test inside the function either.
For example, if the inside if the function is:
for $in in db:open('x')//*
let $blah := ...
return replace value of node $in/@class with 'blah'
So I guess that's the limit to what can be tested without creating an external call and testing from the outside layer (en call fthe function in js rom httprequest and time from js.)
I mostly use prof:time... It's the most useful to us, at least for now.