Please note that the recommended version of Scilab is 2023.1.0. This page might be outdated.
However, this page did not exist in the previous stable version.
extracts and displays execution profiles of a Scilab function
a Scilab function
showprofile the Scilab function must have been prepared for
profiling (see exec).
For such function, When such a function is executed the systems counts
how many time each line is executed and how may cpu time is spend for
each line execution. These data are stored within the function data
showprofile function outputs profiling results
profile) with text of the function lines.
Function text is rebuild with
//define function and prepare it for profiling deff('x=foo(n)',['if n==0 then' ' x=' 'else' ' x=0' ' for k=1:n' ' s=svd(rand(n+10,n+10))' ' x=x+s(1)' ' end' 'end'],'p') //call the function foo(30) //get execution profiles showprofile(foo)
|Report an issue|
|<< profile||profiling||argn >>|