Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - Русский

Change language to:
English - Français - 日本語 - Português -

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.

Scilab help >> Functions > 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

  • profile — extract execution profiles of a Scilab function
  • plotprofile — extracts and displays execution profiles of a Scilab function
  • add_profiling — Adds profiling instructions to a function.
  • reset_profiling — Resets profiling counters of a function.
  • remove_profiling — Removes profiling instructions toout of a function.

Used Functions

This function uses the Scilab functions bytecode and walkbytecode

Report an issue
<< remove_profiling profiling showprofile >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:41:11 CEST 2012