[Scilab-users] code coverage

Jakub Kopac kopac.jakub at gmail.com
Thu Sep 19 20:58:18 CEST 2019


After trials found the problem, bug reported
http://bugzilla.scilab.org/show_bug.cgi?id=16193

BR
J.K.


št 19. 9. 2019 o 10:05 Federico Miyara <fmiyara at fceia.unr.edu.ar>
napísal(a):

>
> 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 listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Libre
> de virus. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> <#m_-4386890231356838285_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190919/973aa955/attachment.htm>


More information about the users mailing list