[Scilab-users] code coverage
kjubo
kopac.jakub at gmail.com
Wed Sep 18 21:49:39 CEST 2019
Dear all,
I am not able to find out, how to make a profiling on functions, if they are
nested.
consider this example:
//SCILAB CODE START
clc,clear
function fx = sub1(x1,x2)
fx = x1+x2
fx = fx/x2
endfunction
function fx = sub2(x1,x2)
fx = sub1(x1,x2)
endfunction
nrun = 1e4
covStart("all")
for ii=1:nrun
sub2(10,7)
end
covWrite("html", "TMPDIR/coverage")
covStop()
winopen('TMPDIR/coverage/'+'sub2'+'.html')
winopen('TMPDIR/coverage/'+'sub1'+'.html') //DOES NOT EXIST
//SCILAB CODE END
Is there any trick?
thanks in advance
BR
J.K.
--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
More information about the users
mailing list