[Scilab-users] code coverage

Federico Miyara fmiyara at fceia.unr.edu.ar
Thu Sep 19 10:05:07 CEST 2019


What do you mean by a profiling on functions?

Federico Miyara

On 18/09/2019 16:49, kjubo wrote:
> 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
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>



---
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190919/ad9a34e5/attachment.htm>


More information about the users mailing list