<< remove_profiling profiling showprofile >>

Removed >> Removed > 5-5-2 > profiling > reset_profiling

reset_profiling

Resets profiling counters of a function.

Calling Sequence

reset_profiling(funname)

Arguments

funname

A character string, the name of the function

Description

reset_profiling(funname) Resets profiling counters (if any) of the function named funname.

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
reset_profiling("foo")
profile(foo) //extract profile information

See Also

Used Functions

This function uses the Scilab functions bytecode and walkbytecode


Report an issue
<< remove_profiling profiling showprofile >>