13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="plotprofile">
15
<refname>plotprofile</refname>
16
<refpurpose> extracts and displays execution profiles
21
<title>Calling Sequence</title>
22
<synopsis>plotprofile(fun)</synopsis>
25
<title>Arguments</title>
30
<para>a Scilab compiled function, or a function name (string), or an array of
38
<title>Description</title>
40
To use <literal>plotprofile</literal>, the Scilab function must have been prepared for
44
When such a function is executed, the system
45
counts how many times each line is executed and how much cpu time is
46
spent executing each line. This data is stored within the
47
function data structure. The function <literal>plotprofile</literal> in an interactive
48
command which displays this results in a graphic window. When a line
49
is clicked, the source of the function is displayed with the selected line
53
NOTE: you have to click on the "Exit" item in the graphics windows to
54
exit from "plotprofile".
57
The function code is regenerated with <literal>fun2string</literal> and dumped into
62
<title>Examples</title>
63
<programlisting role="example"><![CDATA[
15
<refname>plotprofile</refname>
16
<refpurpose> extracts and displays execution profiles
21
<title>Calling Sequence</title>
22
<synopsis>plotprofile(fun)</synopsis>
25
<title>Arguments</title>
30
<para>a Scilab compiled function, or a function name (string), or an array of
38
<title>Description</title>
40
To use <literal>plotprofile</literal>, the Scilab function must have been prepared for
44
When such a function is executed, the system
45
counts how many times each line is executed and how much cpu time is
46
spent executing each line. This data is stored within the
47
function data structure. The function <literal>plotprofile</literal> in an interactive
48
command which displays this results in a graphic window. When a line
49
is clicked, the source of the function is displayed with the selected line
53
NOTE: you have to click on the "Exit" item in the graphics windows to
54
exit from "plotprofile".
57
The function code is regenerated with <literal>fun2string</literal> and dumped into
62
<title>Examples</title>
63
<programlisting role="example"><![CDATA[
64
64
//define a function and prepare it for profiling
65
65
deff('x=foo(n)',['if n==0 then'
77
77
//get execution profiles
78
78
plotprofile(foo) // click on Exit to exit
79
79
]]></programlisting>
81
<refsection role="see also">
82
<title>See Also</title>
83
<simplelist type="inline">
85
<link linkend="profile">profile</link>
88
<link linkend="showprofile">showprofile</link>
91
<link linkend="fun2string">fun2string</link>
81
<refsection role="see also">
82
<title>See Also</title>
83
<simplelist type="inline">
85
<link linkend="profile">profile</link>
88
<link linkend="showprofile">showprofile</link>
91
<link linkend="fun2string">fun2string</link>