Scilab 5.3.0
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.
add_profiling
Adds profiling instructions to a function.
Calling Sequence
add_profiling(funname)
Arguments
- funname
A character string, the name of the function
Description
add_profiling(funname)
Adds profiling instructions to the function
named funname
. Then when this function is run the number of calls, the
time spent is stored for each function line.
Examples
function x=foo(a, n) x=0; for i=1:n if x<10 then x=x+a else x=x+1 end end x=x^2+1 endfunction add_profiling("foo") foo(0.1,100) //run the function profile(foo) //extract profile information
Authors
- Serge Steer, INRIA
Used Functions
This function uses the Scilab functions bytecode
and
walkbytecode
<< profiling | profiling | plotprofile >> |