10
10
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
12
12
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="add_profiling" xml:lang="fr">
14
<refname>add_profiling</refname>
15
<refpurpose>Adds profiling instructions to a function.</refpurpose>
18
<title>Calling Sequence</title>
19
<synopsis>add_profiling(funname)</synopsis>
22
<title>Arguments</title>
27
<para>A character string, the name of the function</para>
33
<title>Description</title>
35
<literal>add_profiling(funname)</literal> Adds profiling instructions to the function
36
named <literal>funname</literal>. Then when this function is run the number of calls, the
37
time spent is stored for each function line.
41
<title>Examples</title>
42
<programlisting role="example"><![CDATA[
14
<refname>add_profiling</refname>
15
<refpurpose>Adds profiling instructions to a function.</refpurpose>
18
<title>Calling Sequence</title>
19
<synopsis>add_profiling(funname)</synopsis>
22
<title>Arguments</title>
27
<para>A character string, the name of the function</para>
33
<title>Description</title>
35
<literal>add_profiling(funname)</literal> Adds profiling instructions to the function
36
named <literal>funname</literal>. Then when this function is run the number of calls, the
37
time spent is stored for each function line.
41
<title>Examples</title>
42
<programlisting role="example"><![CDATA[
43
43
function x=foo(a,n)
56
56
foo(0.1,100) //run the function
57
57
profile(foo) //extract profile information
58
58
]]></programlisting>
60
<refsection role="see also">
61
<title>See Also</title>
62
<simplelist type="inline">
64
<link linkend="profile">profile</link>
67
<link linkend="plotprofile">plotprofile</link>
70
<link linkend="remove_profiling">remove_profiling</link>
73
<link linkend="reset_profiling">reset_profiling</link>
78
<title>Used Functions</title>
80
This function uses the Scilab functions <literal>bytecode</literal> and
81
<literal>walkbytecode</literal>
60
<refsection role="see also">
61
<title>See Also</title>
62
<simplelist type="inline">
64
<link linkend="profile">profile</link>
67
<link linkend="plotprofile">plotprofile</link>
70
<link linkend="remove_profiling">remove_profiling</link>
73
<link linkend="reset_profiling">reset_profiling</link>
78
<title>Used Functions</title>
80
This function uses the Scilab functions <literal>bytecode</literal> and
81
<literal>walkbytecode</literal>