profile/bytecode functions/doc/tests removed. 58/17658/4
Cedric Delamarre [Mon, 11 Jan 2016 10:10:17 +0000 (11:10 +0100)]
functions removed :

add_profiling
plotprofile
remove_profiling
reset_profiling
showprofile
profile
bytecodewalk
bytecode
recompilefunction
listfunctions

Change-Id: Ibdaf9b92d2a12ecd0db3ba1b17643aca2e77c37c

71 files changed:
scilab/modules/core/help/en_US/1_keywords/dot.xml
scilab/modules/core/help/fr_FR/1_keywords/dot.xml
scilab/modules/core/help/ja_JP/1_keywords/dot.xml
scilab/modules/core/help/pt_BR/1_keywords/dot.xml
scilab/modules/core/help/ru_RU/1_keywords/dot.xml
scilab/modules/core/tests/nonreg_tests/bug_7189.dia.ref [deleted file]
scilab/modules/core/tests/nonreg_tests/bug_7189.tst [deleted file]
scilab/modules/core/tests/unit_tests/type.dia.ref
scilab/modules/core/tests/unit_tests/type.tst
scilab/modules/functions/help/en_US/bytecode.xml [deleted file]
scilab/modules/functions/help/en_US/bytecodewalk.xml [deleted file]
scilab/modules/functions/help/en_US/deff.xml
scilab/modules/functions/help/en_US/listfunctions.xml [deleted file]
scilab/modules/functions/help/en_US/profiling/add_profiling.xml [deleted file]
scilab/modules/functions/help/en_US/profiling/plotprofile.xml [deleted file]
scilab/modules/functions/help/en_US/profiling/profile.xml [deleted file]
scilab/modules/functions/help/en_US/profiling/remove_profiling.xml [deleted file]
scilab/modules/functions/help/en_US/profiling/reset_profiling.xml [deleted file]
scilab/modules/functions/help/en_US/profiling/showprofile.xml [deleted file]
scilab/modules/functions/help/en_US/recompilefunction.xml [deleted file]
scilab/modules/functions/help/fr_FR/bytecode.xml [deleted file]
scilab/modules/functions/help/fr_FR/bytecodewalk.xml [deleted file]
scilab/modules/functions/help/fr_FR/profiling/add_profiling.xml [deleted file]
scilab/modules/functions/help/fr_FR/profiling/profile.xml [deleted file]
scilab/modules/functions/help/fr_FR/profiling/remove_profiling.xml [deleted file]
scilab/modules/functions/help/fr_FR/profiling/reset_profiling.xml [deleted file]
scilab/modules/functions/help/ja_JP/bytecode.xml [deleted file]
scilab/modules/functions/help/ja_JP/bytecodewalk.xml [deleted file]
scilab/modules/functions/help/ja_JP/deff.xml
scilab/modules/functions/help/ja_JP/listfunctions.xml [deleted file]
scilab/modules/functions/help/ja_JP/profiling/add_profiling.xml [deleted file]
scilab/modules/functions/help/ja_JP/profiling/plotprofile.xml [deleted file]
scilab/modules/functions/help/ja_JP/profiling/profile.xml [deleted file]
scilab/modules/functions/help/ja_JP/profiling/remove_profiling.xml [deleted file]
scilab/modules/functions/help/ja_JP/profiling/reset_profiling.xml [deleted file]
scilab/modules/functions/help/ja_JP/profiling/showprofile.xml [deleted file]
scilab/modules/functions/help/ja_JP/recompilefunction.xml [deleted file]
scilab/modules/functions/help/pt_BR/bytecode.xml [deleted file]
scilab/modules/functions/help/pt_BR/bytecodewalk.xml [deleted file]
scilab/modules/functions/help/pt_BR/deff.xml
scilab/modules/functions/help/pt_BR/listfunctions.xml [deleted file]
scilab/modules/functions/help/pt_BR/profiling/add_profiling.xml [deleted file]
scilab/modules/functions/help/pt_BR/profiling/plotprofile.xml [deleted file]
scilab/modules/functions/help/pt_BR/profiling/profile.xml [deleted file]
scilab/modules/functions/help/pt_BR/profiling/remove_profiling.xml [deleted file]
scilab/modules/functions/help/pt_BR/profiling/reset_profiling.xml [deleted file]
scilab/modules/functions/help/pt_BR/profiling/showprofile.xml [deleted file]
scilab/modules/functions/help/pt_BR/recompilefunction.xml [deleted file]
scilab/modules/functions/help/ru_RU/bytecode.xml [deleted file]
scilab/modules/functions/help/ru_RU/deff.xml
scilab/modules/functions/help/ru_RU/listfunctions.xml [deleted file]
scilab/modules/functions/macros/add_profiling.sci [deleted file]
scilab/modules/functions/macros/bytecode.sci [deleted file]
scilab/modules/functions/macros/bytecodewalk.sci [deleted file]
scilab/modules/functions/macros/get_profile.sci [deleted file]
scilab/modules/functions/macros/listfunctions.sci [deleted file]
scilab/modules/functions/macros/plotprofile.sci [deleted file]
scilab/modules/functions/macros/profile.sci [deleted file]
scilab/modules/functions/macros/recompilefunction.sci [deleted file]
scilab/modules/functions/macros/remove_profiling.sci [deleted file]
scilab/modules/functions/macros/reset_profiling.sci [deleted file]
scilab/modules/functions/macros/showprofile.sci [deleted file]
scilab/modules/functions/tests/nonreg_tests/bug_13146.dia.ref [deleted file]
scilab/modules/functions/tests/nonreg_tests/bug_13146.tst [deleted file]
scilab/modules/functions/tests/nonreg_tests/bug_2098.dia.ref [deleted file]
scilab/modules/functions/tests/nonreg_tests/bug_2098.tst [deleted file]
scilab/modules/functions/tests/nonreg_tests/bug_6849.dia.ref [deleted file]
scilab/modules/functions/tests/nonreg_tests/bug_6849.tst [deleted file]
scilab/modules/functions/tests/unit_tests/bytecode.dia.ref [deleted file]
scilab/modules/functions/tests/unit_tests/bytecode.tst [deleted file]
scilab/modules/helptools/data/configuration/scilab_macros.txt

index a5f13e9..3f9a835 100644 (file)
@@ -8,13 +8,13 @@
         <title>Calling Sequence</title>
         <synopsis>
             123.33
-
+            
             a.*b
             a .*. b
-
+            
             %pi * (%e + ..
             %i)
-
+            
             cd ..
             dir ..
         </synopsis>
@@ -38,7 +38,7 @@
                         multiplicative operations are obtained using <literal> .* , .^ , ./ , .\</literal>
                         or <literal>.'</literal>. For example,  <literal>C = A ./ B</literal> is
                         the matrix with elements <literal>c(i,j) = a(i,j)/b(i,j)</literal>. Kronecker product
-                        is noted <literal>.*.</literal> . 
+                        is noted <literal>.*.</literal> .
                     </para>
                     <para>
                         <note>
@@ -84,9 +84,9 @@ endfunction
                         continuation marks can be put anywhere even inside an
                         expression.
                         <note>The difference between logical and physical
-                        lines is of importance when dealing with edition (scinotes, edit), with
-                        profiling (profile, showprofile, plotprofile), and within error messages
-                        (whereami), when the line number is provided or displayed.
+                            lines is of importance when dealing with edition (scinotes, edit)
+                            and within error messages
+                            (whereami), when the line number is provided or displayed.
                         </note>
                     </para>
                 </listitem>
@@ -94,7 +94,8 @@ endfunction
             <varlistentry>
                 <term>".." parameter</term>
                 <listitem>
-                    <para>When functions are used in a console-oriented way, <literal>..</literal>
+                    <para>
+                        When functions are used in a console-oriented way, <literal>..</literal>
                         is not considered as a continuation mark but as a simple argument. The most
                         common usage is with <literal>cd ..</literal>, <literal>dir ..</literal>
                         or <literal>ls ..</literal> actually standing for <literal>cd("..")</literal>,
@@ -106,7 +107,7 @@ endfunction
     </refsection>
     <refsection>
         <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 //decimal point
 1.345
 
@@ -177,9 +178,6 @@ y = 12..
                 <link linkend="whereami">whereami</link>
             </member>
             <member>
-                <link linkend="showprofile">showprofile</link>
-            </member>
-            <member>
                 <link linkend="edit">edit</link>
             </member>
         </simplelist>
@@ -196,7 +194,8 @@ y = 12..
                     <para>
                         To cut a single string, "+.." operators must be used.
                     </para>
-                    <para>In console-oriented calls, <literal>myfun ..</literal> no longer expects
+                    <para>
+                        In console-oriented calls, <literal>myfun ..</literal> no longer expects
                         a continuation on the next line.
                     </para>
                 </revremark>
index 8097018..13221df 100644 (file)
@@ -7,13 +7,13 @@
     <refsynopsisdiv>
         <title>Séquence d'appel</title>
         <synopsis>123.33
-
+            
             a.*b
             a .*. b
-
+            
             %pi * (%e + ..
             %i)
-
+            
             cd ..
             dir ..
         </synopsis>
@@ -86,9 +86,8 @@ endfunction
                         n'importe où dans la ligne logique, même à l'intérieur d'une
                         expression.
                         <note>La différence entre lignes logiques et lignes physiques
-                        a son importance lors de l'édition (scinotes, edit), lors de profilage (profile, 
-                        showprofile, plotprofile), et dans les messages d'erreurs (whereami),
-                        lorsque le numéro de ligne est fourni ou affiché.
+                            a son importance lors de l'édition (scinotes, edit) et dans les messages d'erreurs (whereami),
+                            lorsque le numéro de ligne est fourni ou affiché.
                         </note>
                     </para>
                 </listitem>
@@ -97,7 +96,7 @@ endfunction
     </refsection>
     <refsection>
         <title>Exemples</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 // Point decimal
 1.345
 x = [1 2 3];
@@ -173,9 +172,6 @@ y = 12..
                 <link linkend="whereami">whereami</link>
             </member>
             <member>
-                <link linkend="showprofile">showprofile</link>
-            </member>
-            <member>
                 <link linkend="edit">edit</link>
             </member>
         </simplelist>
index fcf5624..08e4ab7 100644 (file)
@@ -8,13 +8,13 @@
         <title>呼び出し手順</title>
         <synopsis>
             123.33
-
+            
             a.*b
             a .*. b
-
+            
             %pi * (%e + ..
             %i)
-
+            
             cd ..
             dir ..
         </synopsis>
@@ -65,7 +65,7 @@
                         このため,継続記号は,行を任意の点で分割するために使用することができます..
                     </para>
                     <para>以下の関数 foo:</para>
-                    <programlisting role=""><![CDATA[ 
+                    <programlisting role=""><![CDATA[
 function foo()
     plot2d()
     xtitle(["General title"; "It can be multiline, so quite long"], ..
@@ -73,7 +73,7 @@ function foo()
 endfunction
  ]]></programlisting>
                     <para>は次の関数と等価です:</para>
-                    <programlisting role=""><![CDATA[ 
+                    <programlisting role=""><![CDATA[
 function foo()
     plot2d()
 
@@ -85,9 +85,8 @@ endfunction
                         同じとなります.このようなことが可能なのは,
                         継続記号を式の中の任意の場所に置く事ができるためです.
                         <note>The difference between logical and physical
-                        lines is of importance when dealing with edition (scinotes, edit), with
-                        profiling (profile, showprofile, plotprofile), and within error messages
-                        (whereami), when the line number is provided or displayed.
+                            lines is of importance when dealing with edition (scinotes, edit) and within error messages
+                            (whereami), when the line number is provided or displayed.
                         </note>
                     </para>
                 </listitem>
@@ -95,7 +94,8 @@ endfunction
             <varlistentry>
                 <term>".." parameter</term>
                 <listitem>
-                    <para>When functions are used in a console-oriented way, <literal>..</literal>
+                    <para>
+                        When functions are used in a console-oriented way, <literal>..</literal>
                         is not considered as a continuation mark but as a simple argument. The most
                         common usage is with <literal>cd ..</literal>, <literal>dir ..</literal>
                         or <literal>ls ..</literal> actually standing for <literal>cd("..")</literal>,
@@ -107,7 +107,7 @@ endfunction
     </refsection>
     <refsection>
         <title>例</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 //decimal point
 1.345
 
@@ -178,9 +178,6 @@ y = 12..
                 <link linkend="whereami">whereami</link>
             </member>
             <member>
-                <link linkend="showprofile">showprofile</link>
-            </member>
-            <member>
                 <link linkend="edit">edit</link>
             </member>
         </simplelist>
@@ -197,7 +194,8 @@ y = 12..
                     <para>
                         To cut a single string, "+.." operators must be used.
                     </para>
-                    <para>In console-oriented calls, <literal>myfun ..</literal> no longer expects
+                    <para>
+                        In console-oriented calls, <literal>myfun ..</literal> no longer expects
                         a continuation on the next line.
                     </para>
                 </revremark>
index 33dfe8b..198a92c 100644 (file)
@@ -8,13 +8,13 @@
         <title> Seqüência de Chamamento </title>
         <synopsis>
             123.33
-
+            
             a.*b
             a .*. b
-
+            
             %pi * (%e + ..
             %i)
-
+            
             cd ..
             dir ..
         </synopsis>
@@ -79,9 +79,8 @@ endfunction
                         continuation marks can be put anywhere even inside an
                         expression.
                         <note>The difference between logical and physical
-                        lines is of importance when dealing with edition (scinotes, edit), with
-                        profiling (profile, showprofile, plotprofile), and within error messages
-                        (whereami), when the line number is provided or displayed.
+                            lines is of importance when dealing with edition (scinotes, edit) and within error messages
+                            (whereami), when the line number is provided or displayed.
                         </note>
                     </para>
                 </listitem>
@@ -89,7 +88,8 @@ endfunction
             <varlistentry>
                 <term>".." parameter</term>
                 <listitem>
-                    <para>When functions are used in a console-oriented way, <literal>..</literal>
+                    <para>
+                        When functions are used in a console-oriented way, <literal>..</literal>
                         is not considered as a continuation mark but as a simple argument. The most
                         common usage is with <literal>cd ..</literal>, <literal>dir ..</literal>
                         or <literal>ls ..</literal> actually standing for <literal>cd("..")</literal>,
@@ -101,7 +101,7 @@ endfunction
     </refsection>
     <refsection>
         <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 //ponto decimal
 1.345
 
@@ -172,9 +172,6 @@ y = 12..
                 <link linkend="whereami">whereami</link>
             </member>
             <member>
-                <link linkend="showprofile">showprofile</link>
-            </member>
-            <member>
                 <link linkend="edit">edit</link>
             </member>
         </simplelist>
@@ -191,7 +188,8 @@ y = 12..
                     <para>
                         To cut a single string, "+.." operators must be used.
                     </para>
-                    <para>In console-oriented calls, <literal>myfun ..</literal> no longer expects
+                    <para>
+                        In console-oriented calls, <literal>myfun ..</literal> no longer expects
                         a continuation on the next line.
                     </para>
                 </revremark>
index 3c8168e..51af0b1 100644 (file)
@@ -8,13 +8,13 @@
         <title>Последовательность вызова</title>
         <synopsis>
             123.33
-
+            
             a.*b
             a .*. b
-
+            
             %pi * (%e + ..
             %i)
-
+            
             cd ..
             dir ..
         </synopsis>
                 <term>.&lt;оператор&gt;</term>
                 <listitem>
                     <para>
-                        используется в сочетании с другими символами операторов (<literal>*/ \ ^ '</literal>) 
-                        для формирования других операторов. Операторы поэлементного умножения, деления и 
+                        используется в сочетании с другими символами операторов (<literal>*/ \ ^ '</literal>)
+                        для формирования других операторов. Операторы поэлементного умножения, деления и
                         возведения в степень и транспонирования получаются с помощью
-                        <literal> .*, ./, .\, .^ </literal>; транспонирование без комплексного сопряжения 
-                        получается с помощью <literal>.'</literal> . Например,  <literal>C = A ./ B</literal> 
-                        является матрицей с элементами <literal>c(i,j) = a(i,j)/b(i,j)</literal>. Произведение 
+                        <literal> .*, ./, .\, .^ </literal>; транспонирование без комплексного сопряжения
+                        получается с помощью <literal>.'</literal> . Например,  <literal>C = A ./ B</literal>
+                        является матрицей с элементами <literal>c(i,j) = a(i,j)/b(i,j)</literal>. Произведение
                         Кронекера обозначается <literal>.*.</literal> . Заметьте, что когда точка стоит
-                        сразу после числа, то она всегда является частью числа, так что <literal>2.*x</literal> 
-                        вычисляется как <literal>2.0*x</literal>, а <literal>2 .*x</literal> вычисляется как 
-                        <literal>(2).*x</literal>. 
+                        сразу после числа, то она всегда является частью числа, так что <literal>2.*x</literal>
+                        вычисляется как <literal>2.0*x</literal>, а <literal>2 .*x</literal> вычисляется как
+                        <literal>(2).*x</literal>.
                     </para>
                 </listitem>
             </varlistentry>
@@ -64,7 +64,7 @@
                     <para>
                         Следующая функция <literal>foo</literal>:
                     </para>
-                    <programlisting role=""><![CDATA[ 
+                    <programlisting role=""><![CDATA[
 function foo()
     plot2d()
     xtitle(["Общий заголовок"; "Он может быть многострочным и достаточно длинным"], ..
@@ -72,7 +72,7 @@ function foo()
 endfunction
  ]]></programlisting>
                     <para>эквивалентна:</para>
-                    <programlisting role=""><![CDATA[ 
+                    <programlisting role=""><![CDATA[
 function foo()
     plot2d()
 
@@ -80,12 +80,12 @@ function foo()
 endfunction
  ]]></programlisting>
                     <para>
-                        Логическая строка, сформированная физической строкой №3 и физической строкой №4, 
-                        построена так, как если бы она была полностью написана на физической строке №4, а 
-                        физическая строка №3 была бы пустой. Так сделано для того, чтобы обозначения 
+                        Логическая строка, сформированная физической строкой №3 и физической строкой №4,
+                        построена так, как если бы она была полностью написана на физической строке №4, а
+                        физическая строка №3 была бы пустой. Так сделано для того, чтобы обозначения
                         конкатенации можно было помещать куда угодно внутри выражения.
                         <note>
-                            Разница между логическими и физическими строками важна, когда идёт редактирование (scinotes, edit) профилирование (<function>profile</function>, <function>showprofile</function>, <function>plotprofile</function>) и в сообщениях об ошибках (<function>whereami</function>), когда номер строки указывается или отображается.
+                            Разница между логическими и физическими строками важна, когда идёт редактирование (scinotes, edit) и в сообщениях об ошибках (<function>whereami</function>), когда номер строки указывается или отображается.
                         </note>
                     </para>
                 </listitem>
@@ -98,18 +98,18 @@ endfunction
                         или <literal>ls ..</literal> вместо <literal>cd("..")</literal> и т. д.
                     </para>
                 </listitem>
-                </varlistentry>
-            </variablelist>
+            </varlistentry>
+        </variablelist>
     </refsection>
     <refsection>
         <title>Примеры</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 //десятичная запятая
 1.345
+
 //используется как часть оператора
 x=[1 2 3];x.^2 .*x // требуется пробел между 2 и точкой
+
 // При записи строк матрицы на разных строчках ".." можно использовать, но не обязательно
 N = [   ..
     63.    89.    3.   ..
@@ -176,9 +176,6 @@ y = 12..
                 <link linkend="whereami">whereami</link>
             </member>
             <member>
-                <link linkend="showprofile">showprofile</link>
-            </member>
-            <member>
                 <link linkend="edit">edit</link>
             </member>
         </simplelist>
diff --git a/scilab/modules/core/tests/nonreg_tests/bug_7189.dia.ref b/scilab/modules/core/tests/nonreg_tests/bug_7189.dia.ref
deleted file mode 100644 (file)
index cee3c16..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2010 - INRIA - Serge Steer
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-// <-- CLI SHELL MODE -->
-//
-// <-- ENGLISH IMPOSED -->
-//
-// <-- Non-regression test for bug 7189 -->
-//
-// <-- Bugzilla URL -->
-// http://bugzilla.scilab.org/show_bug.cgi?id=7189
-//
-// <-- Short Description -->
-// In some cases the usage of resume may lead to a crash of Scilab
-add_profiling("generic_i_hm")
-Warning : redefining function: generic_i_hm            . Use funcprot(0) to avoid this message
-
-T=[];T(2,2,2)='xx';
-if T(2,2,2)<>'xx' then bugmes();quit;end
diff --git a/scilab/modules/core/tests/nonreg_tests/bug_7189.tst b/scilab/modules/core/tests/nonreg_tests/bug_7189.tst
deleted file mode 100644 (file)
index dcd734a..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2010 - INRIA - Serge Steer
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-
-// <-- CLI SHELL MODE -->
-//
-// <-- ENGLISH IMPOSED -->
-//
-// <-- Non-regression test for bug 7189 -->
-//
-// <-- Bugzilla URL -->
-// http://bugzilla.scilab.org/show_bug.cgi?id=7189
-//
-// <-- Short Description -->
-// In some cases the usage of resume may lead to a crash of Scilab
-add_profiling("generic_i_hm")
-T=[];T(2,2,2)='xx';
-if T(2,2,2)<>'xx' then pause,end
-
index 001bcb3..bc882c9 100644 (file)
@@ -21,12 +21,6 @@ if type(%f) <> 4 then bugmes();quit;end
 if type(sparse([1,2;4,5;3,10],[1,2,3])) <> 5 then bugmes();quit;end
 // boolean sparse <-> 6
 if type(sparse([1,2;4,5;3,10], [%t,%t, %t])) <> 6 then bugmes();quit;end
-// matlab sparse <-> 7
-X=sparse(rand(2,2));
-Y=mtlb_sparse(X);
-if type(Y) <> 7 then bugmes();quit;end
-clear X;
-clear Y;
 // int <-> 8
 if type(int8(0)) <> 8 then bugmes();quit;end
 if type(uint8(0)) <> 8 then bugmes();quit;end
@@ -38,13 +32,6 @@ if type(uint32(0)) <> 8 then bugmes();quit;end
 if type(gdf()) <> 9 then bugmes();quit;end
 // string <-> 10
 if type("scilab") <> 10 then bugmes();quit;end
-// Uncompiled function <-> 11 ??????????????????
-deff("__private__()","");
-recompilefunction("__private__","n");
-Warning : redefining function: __private__             . Use funcprot(0) to avoid this message
-
-if type(__private__) <> 11 then bugmes();quit;end
-clear __private__;
 // scilab macro <-> 13
 deff("__private__()","");
 if type(__private__) <> 13 then bugmes();quit;end
index 136aa96..6e4f9af 100644 (file)
@@ -31,13 +31,6 @@ if type(sparse([1,2;4,5;3,10],[1,2,3])) <> 5 then pause,end
 // boolean sparse <-> 6
 if type(sparse([1,2;4,5;3,10], [%t,%t, %t])) <> 6 then pause,end
 
-// matlab sparse <-> 7
-X=sparse(rand(2,2));
-Y=mtlb_sparse(X);
-if type(Y) <> 7 then pause,end
-clear X;
-clear Y;
-
 // int <-> 8
 if type(int8(0)) <> 8 then pause,end
 if type(uint8(0)) <> 8 then pause,end
@@ -52,12 +45,6 @@ if type(gdf()) <> 9 then pause,end
 // string <-> 10
 if type("scilab") <> 10 then pause,end
 
-// Uncompiled function <-> 11 ??????????????????
-deff("__private__()","");
-recompilefunction("__private__","n");
-if type(__private__) <> 11 then pause,end
-clear __private__;
-
 // scilab macro <-> 13
 deff("__private__()","");
 if type(__private__) <> 13 then pause,end
diff --git a/scilab/modules/functions/help/en_US/bytecode.xml b/scilab/modules/functions/help/en_US/bytecode.xml
deleted file mode 100644 (file)
index 825ee1d..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA Serge Steer
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *-->
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="bytecode">
-    <refnamediv>
-        <refname>bytecode</refname>
-        <refpurpose>given a function returns the "bytecode" of a function in a Scilab array and conversely. </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>
-            x = bytecode(f)
-            f = bytecode(x)
-        </synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>f</term>
-                <listitem>
-                    <para>
-                        A Scilab function.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>x</term>
-                <listitem>
-                    <para>
-                        an int32 row vector
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <code>x = bytecode(f)</code> returns the "bytecode" of
-            the function <varname>f</varname> in the Scilab integer array
-            <varname>x</varname>.
-        </para>
-        <para>
-            <code>f= bytecode(x)</code> returns in
-            <varname>f</varname> the function associated with the
-            "bytecode" given in the Scilab integer array
-            <varname>x</varname>.
-            <warning>
-                Warning: the validity of <varname>x</varname> is not checked.
-            </warning>
-        </para>
-    </refsection>
-    <refsection>
-        <title>Remark</title>
-        <para>
-            The bytecode of Scilab function will evolve drastically in the
-            future, so the use of this function should be restricted to the
-            profiling instruction handling.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[
-function a=foo(),a=sin(3),endfunction
-bytecode(foo)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="bytecodewalk">bytecodewalk</link>
-            </member>
-            <member>
-                <link linkend="macr2tree">macr2tree</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/bytecodewalk.xml b/scilab/modules/functions/help/en_US/bytecodewalk.xml
deleted file mode 100644 (file)
index 5b7658c..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Ajouter ici d'éventuels commentaires sur le fichier XML
--->
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="bytecodewalk">
-    <refnamediv>
-        <refname>bytecodewalk</refname>
-        <refpurpose>walk in function bytecode applying transformation. </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>c1 = bytecodewalk(code,query,job)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>code</term>
-                <listitem>
-                    <para>
-                        int32 vector: input byte code array
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>query</term>
-                <listitem>
-                    <para>
-                        integer, the opcode to look for
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>job</term>
-                <listitem>
-                    <para>
-                        the operation to perform, for the requested opcode
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>c1</term>
-                <listitem>
-                    <para>
-                        int32 vector: output byte code array
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            walk in function bytecode applying transformation.
-        </para>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="bytecode">bytecode</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
index 2e6f26d..6859ea1 100644 (file)
                             </listitem>
                         </varlistentry>
                         <varlistentry>
-                            <term>'p'</term>
-                            <listitem>
-                                <para>
-                                    function is "compiled" and prepared for profiling (see help <link linkend="profile">profile</link>);
-                                </para>
-                            </listitem>
-                        </varlistentry>
-                        <varlistentry>
                             <term>'n'</term>
                             <listitem>
                                 <para>function is not "compiled".</para>
diff --git a/scilab/modules/functions/help/en_US/listfunctions.xml b/scilab/modules/functions/help/en_US/listfunctions.xml
deleted file mode 100644 (file)
index 98d90ea..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="listfunctions">
-    <refnamediv>
-        <refname>listfunctions</refname>
-        <refpurpose>properties of all functions in
-            the workspace
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>[flist,compiled,profilable,called] = listfunctions([scope])</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>scope</term>
-                <listitem>
-                    <para>
-                        a string, <literal>"local"</literal> (default) or <literal>"global"</literal>.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>flist</term>
-                <listitem>
-                    <para>
-                        a string array, names of all the function variables in the specified namespace.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>compiled</term>
-                <listitem>
-                    <para>
-                        a boolean array, true if the corresponding element of <varname>flist</varname> is of type 13.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>profilable</term>
-                <listitem>
-                    <para>
-                        a boolean array, true if the corresponding element of <varname>flist</varname> is of type 13,
-                        and additionally profiling information is found in the pseudocode of
-                        the function.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>called</term>
-                <listitem>
-                    <para>
-                        an uint32 array, number of times the corresponding element of <varname>flist</varname> has been
-                        already called (nonzero only for profilable functions).
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <itemizedlist>
-            <listitem>
-                <para>
-                    This function checks all the variables in the workspace (given by
-                    <link linkend="who">who</link>) and collects those of type 11 or 13; for the latter,
-                    <code>lst = macr2lst(fun)</code> is called, in order to check for the magic
-                    profiling entry at the end of the first codeline, i.e. <code>lst(5)(1)=="25"</code>.
-                </para>
-            </listitem>
-        </itemizedlist>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[
-recompilefunction("asinh","p")
-[flist,compiled,profilable,called] = listfunctions();
-flist(profilable)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="function">function</link>
-            </member>
-            <member>
-                <link linkend="exec">exec</link>
-            </member>
-            <member>
-                <link linkend="deff">deff</link>
-            </member>
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="recompilefunction">recompilefunction</link>
-            </member>
-            <member>
-                <link linkend="who">who</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Bibliography</title>
-        <para>
-            <ulink url="http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation">http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation</ulink>
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/profiling/add_profiling.xml b/scilab/modules/functions/help/en_US/profiling/add_profiling.xml
deleted file mode 100644 (file)
index 4c908b3..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-<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" xmlns:scilab="http://www.scilab.org" xml:id="add_profiling" xml:lang="fr">
-    <refnamediv>
-        <refname>add_profiling</refname>
-        <refpurpose>Enables the profiling of a function</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>add_profiling(funname)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>funname</term>
-                <listitem>
-                    <para>A character string, the name of the function to be profiled</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <literal>add_profiling</literal> adds the instructions needed for the profiling of a function.
-            Then, when this function is executed, the number of calls and the
-            time spent, for each line, are stored.
-            These data can be returned with the <link linkend="profile">profile</link> function.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
-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
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="remove_profiling">remove_profiling</link>
-            </member>
-            <member>
-                <link linkend="reset_profiling">reset_profiling</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Used Functions</title>
-        <para>
-            This function uses the Scilab functions <literal>bytecode</literal>  and
-            <literal>walkbytecode</literal> 
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/profiling/plotprofile.xml b/scilab/modules/functions/help/en_US/profiling/plotprofile.xml
deleted file mode 100644 (file)
index 73c5c93..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- * Copyright (C) 2013 - Scilab Enterprises - Simon MARCHETTO
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *
- -->
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="plotprofile">
-    <refnamediv>
-        <refname>plotprofile</refname>
-        <refpurpose>Displays the profiling charts of a function</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>plotprofile(fun)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>fun</term>
-                <listitem>
-                    <para>a Scilab compiled function, or a function name (string), or an array of
-                        function names
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            To use <literal>plotprofile</literal> on a function, the profiling of this function must have been first activated:
-          <itemizedlist>
-               <listitem><para>either by using the <link linkend="add_profiling">add_profiling</link> command.</para></listitem>
-               <listitem><para>or if the function has beed defined with the <link linkend="deff">deff</link> command, by setting the optional argument of <link linkend="deff">deff</link> to "p".</para></listitem>
-          </itemizedlist>
-        </para>
-        <para>
-            Once the function has been executed, calling <literal>plotprofile</literal> displays two windows, one containing the source code of the function, and a second one containing three histograms which show:
-            <itemizedlist>
-                <listitem><para>the number of calls of each line</para></listitem>
-                <listitem><para>the total CPU time spent on each line (in seconds)</para></listitem>
-                <listitem><para>a measure of effort to interpret each line (arbitrary unit)</para></listitem>
-            </itemizedlist>
-        </para>
-        <para>
-            When clicking on a histogram bin, the related line is highlighted in the source code window.
-        </para>
-        <para>
-            Note: "Exit" item is used to exit from the "plotprofile" graphics window.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
-// Exemple of profiling a function
-function foo()
-  runs = 50;
-  b = 0;
-  for i = 1:runs
-      b = zeros(220, 220);
-      for j = 1:220
-           for k = 1:220
-               b(k,j) = abs(j - k) + 1;
-           end
-      end
-  end
-endfunction
-
-// Enables the profiling of the function
-add_profiling("foo");
-
-// Executes the function
-foo();
-
-// Displays the profiling charts
-plotprofile(foo) // click on Exit to exit
-        ]]></programlisting>
-        <programlisting role="example"><![CDATA[ 
-// Exemple of profiling a function defined with deff
-deff('x = foo2(n)', ['if n > 0 then'
-                    '  x = 0;'
-                    '  for k = 1:n'
-                    '    s = svd(rand(n, n));'
-                    '    x = x + s(1);'
-                    '  end'
-                    'else'
-                    '  x = [];'
-                    'end'], ..
-                 'p');
-
-// Executes the function
-foo2(200);
-
-// Displays the profiling charts
-plotprofile("foo2") // click on Exit to exit
-        ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="showprofile">showprofile</link>
-            </member>
-            <member>
-                <link linkend="reset_profiling">reset_profiling</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/profiling/profile.xml b/scilab/modules/functions/help/en_US/profiling/profile.xml
deleted file mode 100644 (file)
index fb12365..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- * Copyright (C) 2013 - Samuel GOUGEON
- * Copyright (C) 2013 - Scilab Enterprises - Simon MARCHETTO
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *
- -->
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="profile">
-    <refnamediv>
-        <refname>profile</refname>
-        <refpurpose>Returns the profiling results of a function</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>c = profile(fun)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>fun</term>
-                <listitem>
-                    <para>a Scilab function</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>c</term>
-                <listitem>
-                    <para>a nx3 matrix containing the profiling results:
-                        <itemizedlist>
-                            <listitem>
-                                <para>
-                                    <literal>c(i,1)</literal> : number of times the line i of the function has been executed
-                                </para>
-                            </listitem>
-                            <listitem>
-                                <para>
-                                    <literal>c(i,2)</literal> : cumulated CPU time [in seconds] spent to execute the line i of the function
-                                </para>
-                            </listitem>
-                            <listitem>
-                                <para>
-                                    <literal>c(i,3)</literal> : Measurement of the interpreter effort to execute once the line i of the function [arbitrary unit]
-                                </para>
-                            </listitem>
-                        </itemizedlist>
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            To use <literal>profile</literal> on a function, the profiling of this function must have been first activated:
-            <itemizedlist>
-                <listitem>
-                    <para>
-                        either by using the <link linkend="add_profiling">add_profiling</link> command.
-                    </para>
-                </listitem>
-                <listitem>
-                    <para>
-                        or if the function has beed defined with the <link linkend="deff">deff</link> command, by setting the optional argument of <link linkend="deff">deff</link> to "p".
-                    </para>
-                </listitem>
-            </itemizedlist>
-        </para>
-        <para>
-            Once the function executed, calling <literal>profile</literal> returns a matrix, where each row contains the profiling results for the corresponding function line (including the header line of the function), such as the number of calls, and the total CPU time spent in that line, and a measurement of the interpretor effort to execute the line, as following:
-        </para>
-        <para>
-            <informaltable border="1">
-                <tr>
-                    <td>Number of calls</td><td>Total CPU time (s)</td><td>Interpretor effort</td>
-                </tr>
-                <tr>
-                    <td>1</td><td>0</td><td>0</td>
-                </tr>
-                <tr>
-                    <td>300</td><td>0.1</td><td>0</td>
-                </tr>
-                <tr>
-                    <td>300</td><td>3.59</td><td>5</td>
-                </tr>
-                <tr>
-                    <td>...</td><td>...</td><td>...</td>
-                </tr>
-            </informaltable>
-        </para>
-        <para>
-            Here we can see that the 3th line of the function has been called 300 times, for a total CPU time of 3.59 seconds.
-        </para>
-        <para>
-            Note: due to the precision limit of CPU time measure (typically one micro second), some executed lines which execution is very fast may appear with a CPU total time of 0.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[
-// Function to be profiled
-function x = foo(n)
-  if n > 0 then
-    x = 0;
-    for k = 1:n
-      s = svd(rand(n, n));
-      x = x + s(1);
-    end
-  else
-    x = [];
-  end
-endfunction
-
-// Enables the profiling of the function
-add_profiling("foo");
-
-// Executes the function
-foo(200);
-
-// Returns the function profiling results
-profile(foo)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="deff">deff</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="showprofile">showprofile</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/profiling/remove_profiling.xml b/scilab/modules/functions/help/en_US/profiling/remove_profiling.xml
deleted file mode 100644 (file)
index 0fbbf9e..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-<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" xmlns:scilab="http://www.scilab.org" xml:id="remove_profiling" xml:lang="fr">
-    <refnamediv>
-        <refname>remove_profiling</refname>
-        <refpurpose>Disables the profiling of a function</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>remove_profiling(funname)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>funname</term>
-                <listitem>
-                    <para>A character string, the name of the profiled function</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <literal>remove_profiling</literal> removes the instructions needed for the profiling of a function.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
-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
-remove_profiling("foo")
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="add_profiling">remove_profiling</link>
-            </member>
-            <member>
-                <link linkend="reset_profiling">reset_profiling</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Used Functions</title>
-        <para>
-            This function uses the Scilab functions <literal>bytecode</literal>  and
-            <literal>walkbytecode</literal> 
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/profiling/reset_profiling.xml b/scilab/modules/functions/help/en_US/profiling/reset_profiling.xml
deleted file mode 100644 (file)
index 3b76cdc..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-<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" xmlns:scilab="http://www.scilab.org" xml:id="reset_profiling" xml:lang="fr">
-    <refnamediv>
-        <refname>reset_profiling</refname>
-        <refpurpose>Resets profiling counters  of a function.</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>reset_profiling(funname)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>funname</term>
-                <listitem>
-                    <para>A character string, the name of the function</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <literal>reset_profiling(funname)</literal> Resets profiling counters (if any)  of the function
-            named <literal>funname</literal>. 
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
-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
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="reset_profiling">reset_profiling</link>
-            </member>
-            <member>
-                <link linkend="remove_profiling">remove_profiling</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Used Functions</title>
-        <para>
-            This function uses the Scilab functions <literal>bytecode</literal>  and
-            <literal>walkbytecode</literal> 
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/profiling/showprofile.xml b/scilab/modules/functions/help/en_US/profiling/showprofile.xml
deleted file mode 100644 (file)
index 072c3dc..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- * Copyright (C) 2013 - Scilab Enterprises - Simon MARCHETTO
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *
- -->
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="showprofile">
-    <refnamediv>
-        <refname>showprofile</refname>
-        <refpurpose>Outputs the function profiling results to the console</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>showprofile(fun)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>fun</term>
-                <listitem>
-                    <para>a Scilab function</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            To use <literal>showprofile</literal> on a function, the profiling of this function must have been first activated:
-            <itemizedlist>
-                <listitem>
-                    <para>
-                        either by using the <link linkend="add_profiling">add_profiling</link> command.
-                    </para>
-                </listitem>
-                <listitem>
-                    <para>
-                        or if the function has beed defined with the <link linkend="deff">deff</link> command, by setting the optional argument of <link linkend="deff">deff</link> to "p".
-                    </para>
-                </listitem>
-            </itemizedlist>
-        </para>
-        <para>
-            Once the function has been executed, calling <literal>showprofile</literal> outputs to the console the profiling results.
-        </para>
-        <para>For each function line (including the header of function), are printed the following informations, in order:
-            <itemizedlist>
-                <listitem><para>the total number of times the line was called</para></listitem>
-                <listitem><para>the total CPU time spent in the line (in seconds)</para></listitem>
-                <listitem><para>a measurement of the interpretor effort to interpret the line</para></listitem>
-                <listitem><para>the number and source code of the line</para></listitem>
-            </itemizedlist>
-        </para>
-        <para>
-            An example of output:
-        </para>
-        <screen>
-            |1  |0   |0| 1: function x=fun(n)
-            |1  |0   |0| 2:   if n > 0 then
-            |1  |0   |2| 3:     x = 0;
-            |200|0.01|0| 4:     for k = 1:n
-            |200|3.99|5| 5:       s = svd(rand(n, n));
-            |...|... |.| ...
-        </screen>
-        <para>
-            Here we can see that the 5th line of the function has been called 200 times, for a total CPU time of 3.99 seconds (and an effort of 5 to interpret the line).
-        </para>
-        <para>
-            <literal>show_profile</literal> looks like to <link linkend="profile">profile</link>, but <link linkend="profile">profile</link> returns a matrix with the profiling results, while <literal>show_profile</literal> only prints that results to the console.
-        </para>
-        <para>
-            Note: due to the precision limit of CPU time measure (typically one micro second), some executed lines which execution is very fast may appear with a CPU total time of 0.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[
-// Function to be profiled
-function x = foo(n)
-  if n > 0 then
-    x = 0;
-    for k = 1:n
-      s = svd(rand(n, n));
-      x = x + s(1);
-    end
-  else
-    x = [];
-  end
-endfunction
-
-// Enables the profiling of the function
-add_profiling("foo");
-
-// Executes the function
-foo(200);
-
-// Prints the function profiling results to console
-showprofile(foo)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="reset_profiling">reset_profiling</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/recompilefunction.xml b/scilab/modules/functions/help/en_US/recompilefunction.xml
deleted file mode 100644 (file)
index 469ec65..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="recompilefunction">
-    <refnamediv>
-        <refname>recompilefunction</refname>
-        <refpurpose>recompiles a scilab function,
-            changing its type
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>recompilefunction(funname [,kind [,force]])</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>funname</term>
-                <listitem>
-                    <para>string, name of the function to recompile
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>kind</term>
-                <listitem>
-                    <para>
-                        string: <emphasis role="bold">"n"</emphasis> (noncompiled, type 11), <emphasis role="bold">"c"</emphasis>
-                        (compiled, type 13) or <emphasis role="bold">"p"</emphasis> (compiled, type 13, with
-                        provision for profiling). Default "c".
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>force</term>
-                <listitem>
-                    <para>boolean. If false, the function is recomplied only if its kind changes;
-                        if true, it is recompiled even if it keeps the same kind (notably useful
-                        to recompile a "p" function, to reset the profiling statistics).
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <itemizedlist>
-            <listitem>
-                <para>
-                    This function recompiles a function variable to the desired kind with <link linkend="deff">deff</link>.
-                </para>
-            </listitem>
-        </itemizedlist>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[
-recompilefunction("asinh","p")
-for i=1:100; asinh(rand(100,100)); end
-showprofile(asinh)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="function">function</link>
-            </member>
-            <member>
-                <link linkend="deff">deff</link>
-            </member>
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Bibliography</title>
-        <para>
-            <ulink url="http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation">http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation</ulink>
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/fr_FR/bytecode.xml b/scilab/modules/functions/help/fr_FR/bytecode.xml
deleted file mode 100644 (file)
index d85847c..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA  Serge Steer
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *-->
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="bytecode">
-    <refnamediv>
-        <refname>bytecode</refname>
-        <refpurpose>Etant donnée une fonction, retourne son pseudo code dans une variable Scilab et réciproquement. </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Séquence d'appel</title>
-        <synopsis>
-            x = bytecode(f)
-            f = bytecode(x)
-        </synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Paramètres</title>
-        <variablelist>
-            <varlistentry>
-                <term>f</term>
-                <listitem>
-                    <para>
-                        une fonction Scilab
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>x</term>
-                <listitem>
-                    <para>
-                        un vecteur d'entiers,
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <code>x = bytecode(f)</code> retourne le pseudo code de la fonction
-            <varname>f</varname> dans le vecteur d'entiers Scilab
-            <varname>x</varname>.
-        </para>
-        <para>
-            <code>f= bytecode(x)</code> retourne dans
-            <varname>f</varname> la fonction correspondant au pseudo code
-            donné dans le vecteur d'entiers
-            <varname>x</varname>.
-            <warning>
-                Attention la validité du pseudo code n'est pas vérifiée.
-            </warning>
-        </para>
-    </refsection>
-    <refsection>
-        <title>Remark</title>
-        <para>
-            Le pseudo code de Scilab va changer dans le futur. Aussi l'usage
-            de cette fonction devrait être limité à la gestion des
-            fonctions de profiling.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[
-function a=foo(),a=sin(3),endfunction
-bytecode(foo)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="bytecodewalk">bytecodewalk</link>
-            </member>
-            <member>
-                <link linkend="macr2tree">macr2tree</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/fr_FR/bytecodewalk.xml b/scilab/modules/functions/help/fr_FR/bytecodewalk.xml
deleted file mode 100644 (file)
index 0fe6288..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Ajouter ici d'éventuels commentaires sur le fichier XML
--->
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="bytecodewalk">
-    <refnamediv>
-        <refname>bytecodewalk</refname>
-        <refpurpose>parcourt le pseudo code d'une fonction en appliquant un traitement</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Séquence d'appel</title>
-        <synopsis>c1 = bytecodewalk(code,query,job)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Paramètres</title>
-        <variablelist>
-            <varlistentry>
-                <term>code</term>
-                <listitem>
-                    <para>
-                        vecteur d'entiers (int32): le vecteur des pseudo codes de la fonction
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>query</term>
-                <listitem>
-                    <para>
-                        intier, le code opératoire à rechercher
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>job</term>
-                <listitem>
-                    <para>
-                        fonction, la fonction a appliquer pour le code opératoire requis
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>c1</term>
-                <listitem>
-                    <para>
-                        vecteur d'entiers (int32): le vecteur des pseudo codes résultant
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            Parcourt le pseudo code d'une fonction en appliquant un traitement, pour un code opératoire donné/
-        </para>
-    </refsection>
-    <refsection role="see also">
-        <title>Voir aussi</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="bytecode">bytecode</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/fr_FR/profiling/add_profiling.xml b/scilab/modules/functions/help/fr_FR/profiling/add_profiling.xml
deleted file mode 100644 (file)
index 1a605e3..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-<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" xmlns:scilab="http://www.scilab.org" xml:id="add_profiling" xml:lang="en">
-    <refnamediv>
-        <refname>add_profiling</refname>
-        <refpurpose>Active le profiling d'une fonction</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Séquence d'appel</title>
-        <synopsis>add_profiling(funname)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Paramètres</title>
-        <variablelist>
-            <varlistentry>
-                <term>funname</term>
-                <listitem>
-                    <para>Une chaine de caractères: le nom de la fonction à profiler</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <literal>add_profiling</literal> ajoute les
-            instructions nécessaires au profiling d'une fonction. Ainsi, lors des appels
-            de cette fonction, le nombre d'appels et le temps d'exécution de chaque ligne sont stockés.
-            Ces données peuvent être ensuite retournées avec la fonction <link linkend="profile">profile</link>.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemples</title>
-        <programlisting role="example"><![CDATA[ 
-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) //execution de la fonction
-profile(foo) //extraction des informations de profil
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Voir aussi</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="remove_profiling">remove_profiling</link>
-            </member>
-            <member>
-                <link linkend="reset_profiling">reset_profiling</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Fonctions utilisées</title>
-        <para>
-            Cette fonction utilise les fonctions Scilab <literal>bytecode</literal> and
-            <literal>walkbytecode</literal>
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/fr_FR/profiling/profile.xml b/scilab/modules/functions/help/fr_FR/profiling/profile.xml
deleted file mode 100644 (file)
index 4628310..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- * Copyright (C) 2013 - Samuel GOUGEON
- * Copyright (C) 2013 - Scilab Enterprises - Simon MARCHETTO
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *
- -->
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="profile">
-    <refnamediv>
-        <refname>profile</refname>
-        <refpurpose>Renvoie les résultats du profiling d'une fonction</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Séquence d'appel</title>
-        <synopsis>c = profile(fun)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Paramètres</title>
-        <variablelist>
-            <varlistentry>
-                <term>fun</term>
-                <listitem>
-                    <para>une fonction Scilab</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>c</term>
-                <listitem>
-                    <para>une matrice nx3 contenant les résultats de profiling :
-                        <itemizedlist>
-                            <listitem>
-                                <para>
-                                    <literal>c(i,1)</literal> : nombre de fois que la ligne i de la fonction a été executée
-                                </para>
-                            </listitem>
-                            <listitem>
-                                <para>
-                                    <literal>c(i,2)</literal> : temps CPU cumulé [en secondes] passé pour exécuter la ligne i de la fonction
-                                </para>
-                            </listitem>
-                            <listitem>
-                                <para>
-                                    <literal>c(i,3)</literal> : mesure de l'effort de l'interpréteur sur la ligne i de la fonction [unité arbitraire]
-                                </para>
-                            </listitem>
-                        </itemizedlist>
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            Pour utiliser <literal>profile</literal> sur une fonction, le profiling de la fonction doit d'abord avoir été activé:
-            <itemizedlist>
-                <listitem>
-                    <para>
-                        soit en utilisant la commande <link linkend="add_profiling">add_profiling</link>
-                    </para>
-                </listitem>
-                <listitem>
-                    <para>
-                        ou si la fonction a été définie avec la commande <link linkend="deff">deff</link>, en positionnant le paramètre optionel de <link linkend="deff">deff</link> à "p".
-                    </para>
-                </listitem>
-            </itemizedlist>
-        </para>
-        <para>
-            Une fois que la function a été exécutée, l'appel de <literal>profile</literal> renvoie une matrice, où chaque ligne contient les résultats de profiling de la ligne correspondante de la fonction (en comptant la ligne d'entête), c'est à dire le nombre de passages, ou le temps total passé par le CPU dans cette ligne, et une mesure de l'effort de l'interpréteur pour interpréter la ligne, comme suit:
-        </para>
-        <para>
-            <informaltable border="1">
-                <tr>
-                    <td>Nombre d'appels</td><td>Temps total CPU (s)</td><td>Effort interpréteur</td>
-                </tr>
-                <tr>
-                    <td>1</td><td>0</td><td>0</td>
-                </tr>
-                <tr>
-                    <td>300</td><td>0.1</td><td>0</td>
-                </tr>
-                <tr>
-                    <td>300</td><td>3,59</td><td>5</td>
-                </tr>
-                <tr>
-                    <td>...</td><td>...</td><td>...</td>
-                </tr>
-            </informaltable>
-        </para>
-        <para>
-            Ici nous pouvons voir que la 3ème ligne de la fonction a été appelée 300 fois pour un temps total CPU de 3,59 secondes.
-        </para>
-        <para>
-            Note: en raison de la limite de précision de mesure de temps CPU (en général une micro seconde), certaines lignes dont l'exécution est très rapide peuvent apparaitre avec un temps CPU cumulé à 0.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemples</title>
-        <programlisting role="example"><![CDATA[
-// Fonction qui est profilée
-function x = foo(n)
-  if n > 0 then
-    x = 0;
-    for k = 1:n
-      s = svd(rand(n, n));
-      x = x + s(1);
-    end
-  else
-    x = [];
-  end
-endfunction
-
-// Active le profiling de la fonction
-add_profiling("foo");
-
-// Exécute la fonction
-foo(200);
-
-// Renvoie les résultats de profiling de la fonction
-profile(foo)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="deff">deff</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="showprofile">showprofile</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/fr_FR/profiling/remove_profiling.xml b/scilab/modules/functions/help/fr_FR/profiling/remove_profiling.xml
deleted file mode 100644 (file)
index 5c41db3..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-<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" xmlns:scilab="http://www.scilab.org" xml:id="remove_profiling" xml:lang="en">
-    <refnamediv>
-        <refname>remove_profiling</refname>
-        <refpurpose>Désactive le profiling d'une fonction</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Séquence d'appel</title>
-        <synopsis>remove_profiling(funname)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Paramètres</title>
-        <variablelist>
-            <varlistentry>
-                <term>funname</term>
-                <listitem>
-                    <para>Une chaine de caractères: le nom de la fonction profilée.</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <literal>remove_profiling</literal> supprime les
-            instructions nécessaires au profiling d'une fonction.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemples</title>
-        <programlisting role="example"><![CDATA[ 
-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) //execution de la fonction
-profile(foo) //extraction des informations de profil
-remove_profiling("foo")
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Voir aussi</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="reset_profiling">reset_profiling</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Fonctions utilisées</title>
-        <para>
-            Cette fonction utilise les fonctions Scilab  <literal>bytecode</literal> and
-            <literal>walkbytecode</literal>
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/fr_FR/profiling/reset_profiling.xml b/scilab/modules/functions/help/fr_FR/profiling/reset_profiling.xml
deleted file mode 100644 (file)
index 2efc040..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-<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" xmlns:scilab="http://www.scilab.org" xml:id="reset_profiling" xml:lang="en">
-    <refnamediv>
-        <refname>reset_profiling</refname>
-        <refpurpose>remet à zéro les compteurs  de profil du code d'une fonction</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Séquence d'appel</title>
-        <synopsis>reset_profiling(funname)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Paramètres</title>
-        <variablelist>
-            <varlistentry>
-                <term>funname</term>
-                <listitem>
-                    <para>Une chaine de caractères: le nom de la fonction</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <literal>reset_profiling(funname)</literal> remet à
-            zéro les compteurs de profil du code de la fonction dont le nom
-            est donné par <literal>funname</literal>.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemples</title>
-        <programlisting role="example"><![CDATA[ 
-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) //execution de la fonction
-profile(foo) //extraction des informations de profil
-reset_profiling("foo")
-profile(foo) //extraction des informations de profil
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Voir aussi</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="reset_profiling">reset_profiling</link>
-            </member>
-            <member>
-                <link linkend="remove_profiling">remove_profiling</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Fonctions utilisées</title>
-        <para>
-            Cette fonction utilise les fonctions Scilab <literal>bytecode</literal> and
-            <literal>walkbytecode</literal>
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/bytecode.xml b/scilab/modules/functions/help/ja_JP/bytecode.xml
deleted file mode 100644 (file)
index c42c0d2..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA Serge Steer
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *-->
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="bytecode">
-    <refnamediv>
-        <refname>bytecode</refname>
-        <refpurpose>
-            Scilab関数を指定すると"バイトコード"をScilab配列に返す,
-            またはその逆の処理を行う.
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>呼び出し手順</title>
-        <synopsis>
-            x = bytecode(f)
-            f = bytecode(x)
-        </synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>引数</title>
-        <variablelist>
-            <varlistentry>
-                <term>f</term>
-                <listitem>
-                    <para>
-                        Scilab 関数.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>x</term>
-                <listitem>
-                    <para>
-                        int32 行ベクトル
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>説明</title>
-        <para>
-            <code>f= bytecode(x)</code>は,
-            Scilab関数 <varname>f</varname> の "バイトコード"を
-            整数配列<varname>x</varname>に返します.
-        </para>
-        <para>
-            <code>f= bytecode(x)</code> は,
-            Scilabの整数配列 <varname>x</varname> で指定した
-            "バイトコード"が示す関数 <varname>f</varname> を
-            返します.
-            <warning>
-                警告: <varname>x</varname> の有効性は確認されません.
-            </warning>
-        </para>
-    </refsection>
-    <refsection>
-        <title>注意</title>
-        <para>
-            Scilab関数のバイトコードは,将来劇的に進化すると予想されるため,
-            この関数はプロファイル命令の処理に限って使用するべきです.
-        </para>
-    </refsection>
-    <refsection>
-        <title>例</title>
-        <programlisting role="example"><![CDATA[
-function a=foo(),a=sin(3),endfunction
-bytecode(foo)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>参照</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="bytecodewalk">bytecodewalk</link>
-            </member>
-            <member>
-                <link linkend="macr2tree">macr2tree</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/bytecodewalk.xml b/scilab/modules/functions/help/ja_JP/bytecodewalk.xml
deleted file mode 100644 (file)
index 1ff879d..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * Ajouter ici d'éventuels commentaires sur le fichier XML
--->
-
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="bytecodewalk">
-    
-    <refnamediv>
-        
-        <refname>bytecodewalk</refname>
-        
-        <refpurpose>
-            
-            関数バイトコードを検索し,変換する. 
-            
-        </refpurpose>
-        
-    </refnamediv>
-    
-    <refsynopsisdiv>
-        
-        <title>呼び出し手順</title>
-        
-        <synopsis>c1 = bytecodewalk(code,query,job)</synopsis>
-        
-    </refsynopsisdiv>
-    
-    <refsection>
-        
-        <title>引数</title>
-        
-        <variablelist>
-            
-            <varlistentry>
-                
-                <term>code</term>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        int32 ベクトル: 入力バイトコード配列
-                        
-                    </para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-            <varlistentry>
-                
-                <term>query</term>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        整数, 検索対象のオペコード
-                        
-                    </para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-            <varlistentry>
-                
-                <term>job</term>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        指示するオペコードで実行する処理
-                        
-                    </para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-            <varlistentry>
-                
-                <term>c1</term>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        int32 ベクトル: 出力バイトコード配列
-                        
-                    </para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-        </variablelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>説明</title>
-        
-        <para>
-            
-            関数バイトコードコードを検索し,
-            
-            変換します.
-            
-        </para>
-        
-    </refsection>
-    
-    <refsection role="see also">
-        
-        <title>参照</title>
-        
-        <simplelist type="inline">
-            
-            <member>
-                
-                <link linkend="bytecode">bytecode</link>
-                
-            </member>
-            
-        </simplelist>
-        
-    </refsection>
-    
-</refentry>
-
index fb704e7..16a4d6c 100644 (file)
                         
                         <varlistentry>
                             
-                            <term>'p'</term>
-                            
-                            <listitem>
-                                
-                                <para>関数は"コンパイル"され,
-                                    
-                                    プロファイルに備えます (<link linkend="profile">profile</link>参照);
-                                    
-                                </para>
-                                
-                            </listitem>
-                            
-                        </varlistentry>
-                        
-                        <varlistentry>
-                            
                             <term>'n'</term>
                             
                             <listitem>
diff --git a/scilab/modules/functions/help/ja_JP/listfunctions.xml b/scilab/modules/functions/help/ja_JP/listfunctions.xml
deleted file mode 100644 (file)
index 552362b..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="listfunctions">
-    <refnamediv>
-        <refname>listfunctions</refname>
-        <refpurpose>
-            ワークスペースの全ての関数のプロパティ
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>呼び出し手順</title>
-        <synopsis>[flist,compiled,profilable,called] = listfunctions([scope])</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>パス名</title>
-        <variablelist>
-            <varlistentry>
-                <term>scope</term>
-                <listitem>
-                    <para>
-                        文字列, <literal>"local"</literal> (デフォルト) または <literal>"global"</literal>
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>flist</term>
-                <listitem>
-                    <para>文字列の配列,
-                        指定した名前空間にある全関数変数の名前
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>compiled</term>
-                <listitem>
-                    <para>論理値配列,
-                        対応する<varname>flist</varname>の要素が型=13の場合に真
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>profilable</term>
-                <listitem>
-                    <para>論理値配列,
-                        対応する<varname>flist</varname>の要素が型=13の場合に真となり,
-                        プロファイル情報が関数の擬似コードの中に追加されます.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>called</term>
-                <listitem>
-                    <para>uint32 配列,
-                        <varname>flist</varname> の対応する要素がコールされた回数
-                        (プロファイル可能な関数の場合のみ非ゼロ)
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>説明</title>
-        <itemizedlist>
-            <listitem>
-                <para>
-                    この関数は,(<link linkend="who">who</link>で指定した)
-                    ワークスペースの全ての変数を確認し,
-                    11型または13型の変数を収集します;
-                    後者の場合,
-                    最初のコード行の末尾の特殊なプロファイル用エントリ,
-                    すなわち,
-                    <code>lst(5)(1)=="25"</code> をチェックするために,
-                    <code>lst = macr2lst(fun)</code> がコールされます.
-                </para>
-            </listitem>
-        </itemizedlist>
-    </refsection>
-    <refsection>
-        <title>例</title>
-        <programlisting role="example"><![CDATA[
-recompilefunction("asinh","p")
-[flist,compiled,profilable,called] = listfunctions();
-flist(profilable)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>参照</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="function">function</link>
-            </member>
-            <member>
-                <link linkend="exec">exec</link>
-            </member>
-            <member>
-                <link linkend="deff">deff</link>
-            </member>
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="recompilefunction">recompilefunction</link>
-            </member>
-            <member>
-                <link linkend="who">who</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>参考文献</title>
-        <para>
-            http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/profiling/add_profiling.xml b/scilab/modules/functions/help/ja_JP/profiling/add_profiling.xml
deleted file mode 100644 (file)
index f0d2b74..0000000
+++ /dev/null
@@ -1,156 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-
-<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" xmlns:scilab="http://www.scilab.org" xml:id="add_profiling" xml:lang="ja">
-    
-    <refnamediv>
-        
-        <refname>add_profiling</refname>
-        
-        <refpurpose>プロファイル命令を関数に追加.</refpurpose>
-        
-    </refnamediv>
-    
-    <refsynopsisdiv>
-        
-        <title>呼び出し手順</title>
-        
-        <synopsis>add_profiling(funname)</synopsis>
-        
-    </refsynopsisdiv>
-    
-    <refsection>
-        
-        <title>引数</title>
-        
-        <variablelist>
-            
-            <varlistentry>
-                
-                <term>funname</term>
-                
-                <listitem>
-                    
-                    <para>文字列, プロファイルされる関数の名前</para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-        </variablelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>説明</title>
-        
-        <para>
-            
-            <literal>add_profiling(funname)</literal> は,
-            
-            プロファイル命令を関数<literal>funname</literal>に
-            
-            追加します.
-            
-            この関数が実行された時に,コール数と消費時間が
-            
-            各行毎に保存されます.
-            
-            これらのデータは
-            
-            <link linkend="profile">profile</link>関数により
-            
-            取得できます.
-            
-        </para>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>例</title>
-        
-        <programlisting role="example"><![CDATA[ 
-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) //関数を実行
-profile(foo) //プロファイル情報を展開
- ]]></programlisting>
-        
-    </refsection>
-    
-    <refsection role="see also">
-        
-        <title>参照</title>
-        
-        <simplelist type="inline">
-            
-            <member>
-                
-                <link linkend="profile">profile</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="plotprofile">plotprofile</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="remove_profiling">remove_profiling</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="reset_profiling">reset_profiling</link>
-                
-            </member>
-            
-        </simplelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>使用される関数</title>
-        
-        <para>
-            
-            この関数は Scilab 関数<literal>bytecode</literal>  および
-            
-            <literal>walkbytecode</literal> と使用します.
-            
-        </para>
-        
-    </refsection>
-    
-</refentry>
-
diff --git a/scilab/modules/functions/help/ja_JP/profiling/plotprofile.xml b/scilab/modules/functions/help/ja_JP/profiling/plotprofile.xml
deleted file mode 100644 (file)
index a1f1de6..0000000
+++ /dev/null
@@ -1,232 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *
- -->
-
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="plotprofile">
-    
-    <refnamediv>
-        
-        <refname>plotprofile</refname>
-        
-        <refpurpose>関数のプロファイルチャートを表示する</refpurpose>
-        
-    </refnamediv>
-    
-    <refsynopsisdiv>
-        
-        <title>呼び出し手順</title>
-        
-        <synopsis>plotprofile(fun)</synopsis>
-        
-    </refsynopsisdiv>
-    
-    <refsection>
-        
-        <title>引数</title>
-        
-        <variablelist>
-            
-            <varlistentry>
-                
-                <term>fun</term>
-                
-                <listitem>
-                    
-                    <para>コンパイル済みのScilab 関数, または関数名 (文字列), または関数名の配列</para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-        </variablelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>説明</title>
-        
-        <para>
-            
-            ある関数に<literal>plotprofile</literal>を使用する場合, 
-            
-            この関数についてプロファイル機能を有効にしてある必要があります:
-            
-            <itemizedlist>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        <link linkend="add_profiling">add_profiling</link> コマンド.
-                        
-                    </para>
-                    
-                </listitem>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        または関数が<link linkend="deff">deff</link>コマンドで定義された場合,
-                        
-                        <link linkend="deff">deff</link>のオプション引数に "p" を指定,
-                        
-                        のどちらか
-                        
-                    </para>
-                    
-                </listitem>
-                
-            </itemizedlist>
-            
-        </para>
-        
-        <para>
-            
-            この関数を一度実行した後で, 
-            
-            <literal>plotprofile</literal>をコールすると,
-            
-            2つのメインウインドウが表示され,
-            
-            1番目には関数のソースコード,
-            
-            2番目には以下を示す3つのヒストグラムが含まれます:
-            
-            <itemizedlist>
-                
-                <listitem>
-                    <para>各行のコール回数</para>
-                </listitem>
-                
-                <listitem>
-                    <para>各行で使用された合計CPU時間 (単位: 秒)</para>
-                </listitem>
-                
-                <listitem>
-                    <para>各行を解釈するための労力の計測値 (任意の単位)</para>
-                </listitem>
-                
-            </itemizedlist>
-            
-        </para>
-               
-        
-        <para>
-            
-            ヒストグラムのビンをクリックすると, 
-            
-            ソースコードウインドウ内で関係する行がハイライト表示されます.
-            
-        </para>
-        
-        <para>
-            
-            注意: "plotprofile"グラフィックウインドウから出るには, "Exist"要素を使用します.
-            
-        </para>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>例</title>
-        
-        <programlisting role="example"><![CDATA[ 
-// 関数のプロファイルの例
-function foo()
-  runs = 50;
-  b = 0;
-  for i = 1:runs
-      b = zeros(220, 220);
-      for j = 1:220
-           for k = 1:220
-               b(k,j) = abs(j - k) + 1;
-           end
-      end
-  end
-endfunction
-
-// 関数のプロファイルを有効にする
-add_profiling("foo");
-
-// 関数を実行
-foo();
-
-// プロファイルチャートを表示
-plotprofile(foo) // 出るには Exit をクリック
-        ]]></programlisting>
-        
-        <programlisting role="example"><![CDATA[ 
-// deffで定義した関数をプロファイルする例
-deff('x = foo2(n)', ['if n > 0 then'
-                    '  x = 0;'
-                    '  for k = 1:n'
-                    '    s = svd(rand(n, n));'
-                    '    x = x + s(1);'
-                    '  end'
-                    'else'
-                    '  x = [];'
-                    'end'], ..
-                 'p');
-
-// 関数を実行
-foo2(200);
-
-// プロファイルチャートを表示
-plotprofile("foo2") // 出るには Exit をクリック
-        ]]></programlisting>
-        
-    </refsection>
-    
-    <refsection role="see also">
-        
-        <title>参照</title>
-        
-        <simplelist type="inline">
-            
-            <member>
-                
-                <link linkend="add_profiling">add_profiling</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="profile">profile</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="showprofile">showprofile</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="reset_profiling">reset_profiling</link>
-                
-            </member>
-            
-        </simplelist>
-        
-    </refsection>
-    
-</refentry>
-
diff --git a/scilab/modules/functions/help/ja_JP/profiling/profile.xml b/scilab/modules/functions/help/ja_JP/profiling/profile.xml
deleted file mode 100644 (file)
index 90bfe0f..0000000
+++ /dev/null
@@ -1,290 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *
- -->
-
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="profile">
-    
-    <refnamediv>
-        
-        <refname>profile</refname>
-        
-        <refpurpose>関数のプロファイル結果を返す</refpurpose>
-        
-    </refnamediv>
-    
-    <refsynopsisdiv>
-        
-        <title>呼び出し手順</title>
-        
-        <synopsis>c = profile(fun)</synopsis>
-        
-    </refsynopsisdiv>
-    
-    <refsection>
-        
-        <title>引数</title>
-        
-        <variablelist>
-            
-            <varlistentry>
-                
-                <term>fun</term>
-                
-                <listitem>
-                    
-                    <para>Scilab関数</para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-            <varlistentry>
-                
-                <term>c</term>
-                
-                <listitem>
-                    
-                    <para>以下のプロファイル結果を含む nx3 行列:
-                        
-                        <itemizedlist>
-                            
-                            <listitem>
-                                
-                                <para>
-                                    
-                                    <literal>c(i,1)</literal> : 関数のi行目の実行回数
-                                    
-                                </para>
-                                
-                            </listitem>
-                            
-                            <listitem>
-                                
-                                <para>
-                                    
-                                    <literal>c(i,2)</literal> : 関数のi行目を実行する際に費やした累積CPI時間[単位:秒]
-                                    
-                                </para>
-                                
-                            </listitem>
-                            
-                            <listitem>
-                                
-                                <para>
-                                    
-                                    <literal>c(i,3)</literal> : 関数のi行目を1回実行した際のインタプリタの
-                                    
-                                    処理負荷の観測量 [任意の単位]
-                                    
-                                </para>
-                                
-                            </listitem>
-                            
-                        </itemizedlist>
-                        
-                    </para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-        </variablelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>説明</title>
-        
-        <para>
-            
-            ある関数で<literal>profile</literal>を使用するには,
-            
-            この関数についてプロファイル機能を有効にしてある必要があります:
-            
-            <itemizedlist>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        <link linkend="add_profiling">add_profiling</link> コマンド.
-                        
-                    </para>
-                    
-                </listitem>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        または関数が<link linkend="deff">deff</link>コマンドで定義された場合,
-                        
-                        <link linkend="deff">deff</link>のオプション引数に "p" を指定,
-                        
-                        のどちらか
-                        
-                    </para>
-                    
-                </listitem>
-                
-            </itemizedlist>
-            
-        </para>
-        
-        <para>
-            
-            この関数が一度実行された後,<literal>profile</literal>をコールすると,
-            
-            行列が返されます.
-            
-            この行列の各行には,(関数のヘッダ行を含む)
-            
-            対応する関数の行に関するプロファイル結果が含まれます.
-            
-            この結果は,以下のような
-            
-            コール回数, この行に費やした合計CPU時間, この行の実行にかかったインタプリタ負荷
-            
-            です:
-            
-        </para>
-        
-        <para>
-            
-            <informaltable border="1">
-                
-                <tr>
-                    
-                    <td>Number of calls</td><td>Total CPU time (s)</td><td>Interpretor effort</td>
-                    
-                </tr>
-                
-                <tr>
-                    
-                    <td>1</td><td>0</td><td>0</td>
-                    
-                </tr>
-                
-                <tr>
-                    
-                    <td>300</td><td>0.1</td><td>0</td>
-                    
-                </tr>
-                
-                <tr>
-                    
-                    <td>300</td><td>3.59</td><td>5</td>
-                    
-                </tr>
-                
-                <tr>
-                    
-                    <td>...</td><td>...</td><td>...</td>
-                    
-                </tr>
-                
-            </informaltable>
-            
-        </para>
-        
-        <para>
-            
-            ここでは,関数の3行目が300回コールされ,
-            
-            合計CPU時間が 3.59秒であることがわかります.
-            
-        </para>
-        
-        <para>
-            
-            注意: CPU時間の精度の制約(通常は1マイクロ秒)により,
-            
-            実行時間が非常に速い実行された行は,CPUの合計時間が0と
-            
-            表示される可能性があります.
-            
-        </para>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>例</title>
-        
-        <programlisting role="example"><![CDATA[
-// プロファイルする関す
-function x = foo(n)
-  if n > 0 then
-    x = 0;
-    for k = 1:n
-      s = svd(rand(n, n));
-      x = x + s(1);
-    end
-  else
-    x = [];
-  end
-endfunction
-
-// 関数のプロファイルを有効化
-add_profiling("foo");
-
-// 関数を実行
-foo(200);
-
-// 関数のプロファイル結果を返す
-profile(foo)
- ]]></programlisting>
-        
-    </refsection>
-    
-    <refsection role="see also">
-        
-        <title>参照</title>
-        
-        <simplelist type="inline">
-            
-            <member>
-                
-                <link linkend="add_profiling">add_profiling</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="deff">deff</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="plotprofile">plotprofile</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="showprofile">showprofile</link>
-                
-            </member>
-            
-        </simplelist>
-        
-    </refsection>
-    
-</refentry>
-
diff --git a/scilab/modules/functions/help/ja_JP/profiling/remove_profiling.xml b/scilab/modules/functions/help/ja_JP/profiling/remove_profiling.xml
deleted file mode 100644 (file)
index 783ed1a..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-
-<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" xmlns:scilab="http://www.scilab.org" xml:id="remove_profiling" xml:lang="ja">
-    
-    <refnamediv>
-        
-        <refname>remove_profiling</refname>
-        
-        <refpurpose>指定した関数のプロファイルを無効にする</refpurpose>
-        
-    </refnamediv>
-    
-    <refsynopsisdiv>
-        
-        <title>呼び出し手順</title>
-        
-        <synopsis>remove_profiling(funname)</synopsis>
-        
-    </refsynopsisdiv>
-    
-    <refsection>
-        
-        <title>引数</title>
-        
-        <variablelist>
-            
-            <varlistentry>
-                
-                <term>funname</term>
-                
-                <listitem>
-                    
-                    <para>文字列, プロファイルした関数の名前</para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-        </variablelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>説明</title>
-        
-        <para>
-            
-            <literal>remove_profiling</literal>は,関数のプロファイルに
-            
-            必要な命令を削除します.
-            
-        </para>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>例</title>
-        
-        <programlisting role="example"><![CDATA[ 
-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) //関数を実行
-profile(foo) //プロファイル情報を展開
-remove_profiling("foo")
- ]]></programlisting>
-        
-    </refsection>
-    
-    <refsection role="see also">
-        
-        <title>参照</title>
-        
-        <simplelist type="inline">
-            
-            <member>
-                
-                <link linkend="profile">profile</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="plotprofile">plotprofile</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="add_profiling">remove_profiling</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="reset_profiling">reset_profiling</link>
-                
-            </member>
-            
-        </simplelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>使用する関数</title>
-        
-        <para>
-            
-            この関数は Scilab 関数 <literal>bytecode</literal>  および
-            
-            <literal>walkbytecode</literal>を使用しています. 
-            
-        </para>
-        
-    </refsection>
-    
-</refentry>
-
diff --git a/scilab/modules/functions/help/ja_JP/profiling/reset_profiling.xml b/scilab/modules/functions/help/ja_JP/profiling/reset_profiling.xml
deleted file mode 100644 (file)
index c7b2493..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-
-<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" xmlns:scilab="http://www.scilab.org" xml:id="reset_profiling" xml:lang="ja">
-    
-    <refnamediv>
-        
-        <refname>reset_profiling</refname>
-        
-        <refpurpose>関数のプロファイル用カウンタをリセットする</refpurpose>
-        
-    </refnamediv>
-    
-    <refsynopsisdiv>
-        
-        <title>呼び出し手順</title>
-        
-        <synopsis>reset_profiling(funname)</synopsis>
-        
-    </refsynopsisdiv>
-    
-    <refsection>
-        
-        <title>引数</title>
-        
-        <variablelist>
-            
-            <varlistentry>
-                
-                <term>funname</term>
-                
-                <listitem>
-                    
-                    <para>文字列, 関数名</para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-        </variablelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>説明</title>
-        
-        <para>
-            
-            <literal>reset_profiling(funname)</literal> は,
-            
-            <literal>funname</literal>という名前の関数のプロファイル用カウンタをリセット
-            
-            します.
-            
-        </para>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>例</title>
-        
-        <programlisting role="example"><![CDATA[ 
-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) //関数を実行
-profile(foo) //プロファイル情報を展開
-reset_profiling("foo")
-profile(foo) //プロファイル情報を展開
- ]]></programlisting>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>S参照</title>
-        
-        <simplelist type="inline">
-            
-            <member>
-                
-                <link linkend="profile">profile</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="plotprofile">plotprofile</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="add_profiling">add_profiling</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="reset_profiling">reset_profiling</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="remove_profiling">remove_profiling</link>
-                
-            </member>
-            
-        </simplelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>使用される関数</title>
-        
-        <para>
-            
-            この関数は Scilab 関数 <literal>bytecode</literal>  および
-            
-            <literal>walkbytecode</literal>を使用します.
-            
-        </para>
-        
-    </refsection>
-    
-</refentry>
-
diff --git a/scilab/modules/functions/help/ja_JP/profiling/showprofile.xml b/scilab/modules/functions/help/ja_JP/profiling/showprofile.xml
deleted file mode 100644 (file)
index c2549f9..0000000
+++ /dev/null
@@ -1,234 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *
- -->
-
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="showprofile">
-    
-    <refnamediv>
-        
-        <refname>showprofile</refname>
-        
-        <refpurpose>関数のプロファイル結果をコンソールに出力</refpurpose>
-        
-    </refnamediv>
-    
-    <refsynopsisdiv>
-        
-        <title>呼び出し手順</title>
-        
-        <synopsis>showprofile(fun)</synopsis>
-        
-    </refsynopsisdiv>
-    
-    <refsection>
-        
-        <title>引数</title>
-        
-        <variablelist>
-            
-            <varlistentry>
-                
-                <term>fun</term>
-                
-                <listitem>
-                    
-                    <para>Scilab関数</para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-        </variablelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>説明</title>
-        
-        <para>
-            
-            ある関数で<literal>showprofile</literal>を使用するには,
-            
-            この関数についてプロファイル機能を有効にしておく必要があります:
-            
-            <itemizedlist>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        <link linkend="add_profiling">add_profiling</link> コマンド.
-                        
-                    </para>
-                    
-                </listitem>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        または関数が<link linkend="deff">deff</link>コマンドで定義された場合,
-                        
-                        <link linkend="deff">deff</link>のオプション引数に "p" を指定,
-                        
-                        のどちらか
-                        
-                    </para>
-                    
-                </listitem>
-                
-            </itemizedlist>
-            
-        </para>
-        
-        <para>
-            
-            この関数が一度コールされた後, <literal>showprofile</literal>をコールすると,
-            
-            プロファイル結果がコンソールに出力されます.
-            
-        </para>
-        
-        <para>
-            
-            出力される各行には(関数のヘッダ行を含む)対応する関数の行のプロファイル結果が含まれます.
-            
-            これには,この行のコール回数,合計CPU消費時間,
-            
-            この行の解釈に要したインタプリタ負荷, この行のソースコードが
-            
-            含まれます.
-            
-            出力の例を以下に示します:
-            
-        </para>
-        
-        <screen>
-            
-            |1   |0    |0| function x=fun(n)
-            
-            |1   |0    |0|   if n > 0 then
-            
-            |1   |0    |2|     x = 0;
-            
-            |200 |0.01 |0|     for k = 1:n
-            
-            |200 |3.99 |5|       s = svd(rand(n, n));
-            
-            |... |...  |.| ...
-            
-        </screen>
-        
-        <para>
-            
-            ここでは,関数の5行目が200回コールされ,合計CPU時間が3.99秒であったことがわかります.
-            
-        </para>
-        
-        <para>
-            
-            <literal>show_profile</literal> は
-            
-            <link linkend="profile">profile</link>に似ていますが,
-            
-            <link linkend="profile">profile</link> はプロファイル結果を
-            
-            行列に返すのに対して,
-            
-            <literal>show_profile</literal> はコンソールに結果を出力するのみです.
-            
-        </para>
-        
-        <para>
-            
-            注意: CPU時間の精度の制約(通常は1マイクロ秒)により,
-            
-            実行時間が非常に速い実行された行は,CPUの合計時間が0と
-            
-            表示される可能性があります.
-            
-        </para>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>例</title>
-        
-        <programlisting role="example"><![CDATA[ 
-// プロファイルする関数
-function x = foo(n)
-  if n > 0 then
-    x = 0;
-    for k = 1:n
-      s = svd(rand(n, n));
-      x = x + s(1);
-    end
-  else
-    x = [];
-  end
-endfunction
-
-// 関数のプロファイルを有効化
-add_profiling("foo");
-
-// 関数を実行
-foo(200);
-
-// プロファイル結果をコンソールに出力
-showprofile(foo)
- ]]></programlisting>
-        
-    </refsection>
-    
-    <refsection role="see also">
-        
-        <title>参照</title>
-        
-        <simplelist type="inline">
-            
-            <member>
-                
-                <link linkend="add_profiling">add_profiling</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="profile">profile</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="plotprofile">plotprofile</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="reset_profiling">reset_profiling</link>
-                
-            </member>
-            
-        </simplelist>
-        
-    </refsection>
-    
-</refentry>
-
diff --git a/scilab/modules/functions/help/ja_JP/recompilefunction.xml b/scilab/modules/functions/help/ja_JP/recompilefunction.xml
deleted file mode 100644 (file)
index 5f494b3..0000000
+++ /dev/null
@@ -1,162 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="recompilefunction">
-    
-    <refnamediv>
-        
-        <refname>recompilefunction</refname>
-        
-        <refpurpose>型を変更し,Scilab関数を再コンパイルする</refpurpose>
-        
-    </refnamediv>
-    
-    <refsynopsisdiv>
-        
-        <title>呼び出し手順</title>
-        
-        <synopsis>recompilefunction(funname [,kind [,force]])</synopsis>
-        
-    </refsynopsisdiv>
-    
-    <refsection>
-        
-        <title>引数</title>
-        
-        <variablelist>
-            
-            <varlistentry>
-                
-                <term>funname</term>
-                
-                <listitem>
-                    
-                    <para>文字列, 再コンパイルする関数の名前
-                        
-                    </para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-            <varlistentry>
-                
-                <term>kind</term>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        文字列: <emphasis role="bold">"n"</emphasis> (コンパイル前, 11型),
-                        
-                        <emphasis role="bold">"c"</emphasis>
-                        
-                        (コンパイル済み, 13型) または <emphasis role="bold">"p"</emphasis>
-                        
-                        (コンパイル済み, type 型, プロファイル用). デフォルト: "c".
-                        
-                    </para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-            <varlistentry>
-                
-                <term>force</term>
-                
-                <listitem>
-                    
-                    <para>
-                        
-                        論理値. falseの場合, 関数は kind が変更された場合のみ再コンパイルされます;
-                        
-                        true の場合, 同じ kind が維持される場合でも再コンパイルされます
-                        
-                        (プロファイル統計をリセットするために "p" 関数を再コンパイルする場合に特に有用です).
-                        
-                    </para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-        </variablelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>説明</title>
-        
-        <itemizedlist>
-            
-            <listitem>
-                
-                <para>
-                    
-                    <link linkend="deff">deff</link>により
-                    
-                    指定した種類に再コンパイルします.
-                    
-                </para>
-                
-            </listitem>
-            
-        </itemizedlist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>例</title>
-        
-        <programlisting role="example"><![CDATA[
-recompilefunction("asinh","p")
-for i=1:100; asinh(rand(100,100)); end
-showprofile(asinh)
- ]]></programlisting>
-        
-    </refsection>
-    
-    <refsection role="see also">
-        
-        <title>参照</title>
-        
-        <simplelist type="inline">
-            
-            <member>
-                
-                <link linkend="function">function</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="deff">deff</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="profile">profile</link>
-                
-            </member>
-            
-        </simplelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>参考文献</title>
-        
-        <para>
-            
-            http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation
-            
-        </para>
-        
-    </refsection>
-    
-</refentry>
-
diff --git a/scilab/modules/functions/help/pt_BR/bytecode.xml b/scilab/modules/functions/help/pt_BR/bytecode.xml
deleted file mode 100644 (file)
index cf64338..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA Serge Steer
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *-->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="bytecode" xml:lang="pt">
-    <refnamediv>
-        <refname>bytecode</refname>
-        <refpurpose>dada uma função, retorna "bytecode" (código de bytes) da
-            função em um array Scilab e vice-versa.
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>
-            x = bytecode(f)
-            f = bytecode(x)
-        </synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Parâmetros</title>
-        <variablelist>
-            <varlistentry>
-                <term>f</term>
-                <listitem>
-                    <para>função Scilab</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>x</term>
-                <listitem>
-                    <para>vetor linha int32</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Descrição</title>
-        <para>
-            <code>x = bytecode(f)</code> retorna o "bytecode" da função
-            <varname>f</varname> no array Scilab de inteiros
-            <varname>x</varname>.
-        </para>
-        <para>
-            <code>f= bytecode(x)</code> retorna em <varname>f</varname> a
-            função associada ao "bytecode" dado no array Scilab de inteiros
-            <varname>x</varname>.
-            <warning>
-                AVISO: a validade de <varname>x</varname> não é
-                verificada.
-            </warning>
-        </para>
-    </refsection>
-    <refsection>
-        <title>Observação</title>
-        <para>O bytecode da função Scilab evoluirá drasticamente no futuro, então
-            o uso dessa função deve se restringir à manipulação de instruções de
-            profiling.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[
-function a=foo(),a=sin(3),endfunction
-bytecode(foo)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Ver Também</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="bytecodewalk">bytecodewalk</link>
-            </member>
-            <member>
-                <link linkend="macr2tree">macr2tree</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/bytecodewalk.xml b/scilab/modules/functions/help/pt_BR/bytecodewalk.xml
deleted file mode 100644 (file)
index fdd70b3..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- * Ajouter ici d'éventuels commentaires sur le fichier XML
--->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="bytecodewalk" xml:lang="fr">
-    <refnamediv>
-        <refname>bytecodewalk</refname>
-        <refpurpose>caminha no bytecode (código de bytes) da função aplicando
-            transformação
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>c1 = bytecodewalk(code,query,job)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Parâmetros</title>
-        <variablelist>
-            <varlistentry>
-                <term>code</term>
-                <listitem>
-                    <para>vetor int32: array de bytecode de entrada</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>query</term>
-                <listitem>
-                    <para>inteiro, o opcode (código de operação) a ser procurado</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>job</term>
-                <listitem>
-                    <para>a operação a ser realizada, requerida para</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>c1</term>
-                <listitem>
-                    <para>vetor int32: array de bytecode de saída</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Descrição</title>
-        <para>caminha no bytecode da função aplicando transformação</para>
-    </refsection>
-    <refsection role="see also">
-        <title>Ver Também</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="bytecode">bytecode</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
index ef0697e..968ba10 100644 (file)
                             </listitem>
                         </varlistentry>
                         <varlistentry>
-                            <term>'p'</term>
-                            <listitem>
-                                <para>a função é compilada e preparada para profiling (ver
-                                    <link linkend="profile">profile</link>);
-                                </para>
-                            </listitem>
-                        </varlistentry>
-                        <varlistentry>
                             <term>'n'</term>
                             <listitem>
                                 <para>a função não é "compilada".</para>
diff --git a/scilab/modules/functions/help/pt_BR/listfunctions.xml b/scilab/modules/functions/help/pt_BR/listfunctions.xml
deleted file mode 100644 (file)
index 0389781..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="listfunctions" xml:lang="pt">
-    <refnamediv>
-        <refname>listfunctions</refname>
-        <refpurpose>propriedades de todas as funções no espaço de
-            trabalho
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>[flist,compiled,profilable,called] = listfunctions([scope])</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Parâmetros</title>
-        <variablelist>
-            <varlistentry>
-                <term>scope</term>
-                <listitem>
-                    <para>
-                        string, <literal>"local"</literal> (padrão) ou <literal>"global"</literal>
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>flist</term>
-                <listitem>
-                    <para>array de strings, names nomes de todas as variáveis funções
-                        especificadas no espaço de trabalho
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>compiled</term>
-                <listitem>
-                    <para>array de booleanos, verdadeiro se o elemento correspondente de
-                        <varname>flist</varname> for do tipo 13
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>profilable</term>
-                <listitem>
-                    <para>array de booleanos, verdadeiro se o elemento correspondente de
-                        <varname>flist</varname> for do tipo 13, e adicionalmente informações sobre profiling
-                        forem encontradas no pseudo-código da função.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>called</term>
-                <listitem>
-                    <para>array uint32, número de vezes que o elemento correspondente de
-                        <varname>flist</varname> foi chamado (não-zero apenas se a função possuir
-                        profiling)
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Descrição</title>
-        <itemizedlist>
-            <listitem>
-                <para>Esta função verifica todas as variáveis do espaço de trabalho
-                    (dadas por <link linkend="who">who</link>) e coleta aquelas de tipo 11
-                    ou 13; para as últimas, <code>lst = macr2lst(fun)</code> é chamada, de modo a verificar
-                    a entrada para magic profiling ao fim da primeira linha de código,
-                    i.e. <code>lst(5)(1)=="25"</code>.
-                </para>
-            </listitem>
-        </itemizedlist>
-    </refsection>
-    <refsection>
-        <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[
-recompilefunction("asinh","p")
-[flist,compiled,profilable,called] = listfunctions();
-flist(profilable)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Ver Também</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="function">function</link>
-            </member>
-            <member>
-                <link linkend="exec">exec</link>
-            </member>
-            <member>
-                <link linkend="deff">deff</link>
-            </member>
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="recompilefunction">recompilefunction</link>
-            </member>
-            <member>
-                <link linkend="who">who</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Bibliografia</title>
-        <para>
-            <ulink url="http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation">http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation</ulink>
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/profiling/add_profiling.xml b/scilab/modules/functions/help/pt_BR/profiling/add_profiling.xml
deleted file mode 100644 (file)
index 0493067..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-<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" xmlns:scilab="http://www.scilab.org" xml:id="add_profiling" xml:lang="fr">
-    <refnamediv>
-        <refname>add_profiling</refname>
-        <refpurpose>adiciona instruções de profiling (análise de performance) a
-            uma função
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>add_profiling(funname)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Parâmetros</title>
-        <variablelist>
-            <varlistentry>
-                <term>funname</term>
-                <listitem>
-                    <para>string, o nome da função</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Descrição</title>
-        <para>
-            <literal>add_profiling(funname)</literal> adiciona instruções de
-            profiling a uma função de nome <literal>funname</literal>. Então, quando
-            esta função é chamada, o número de chamadas e o tempo gasto é armazenado
-            para cada linha da função.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[ 
-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) //executando a função
-profile(foo) //extraindo informação de profile
- ]]></programlisting>
-    </refsection>
-    <refsection>
-        <title>Ver Também</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="remove_profiling">remove_profiling</link>
-            </member>
-            <member>
-                <link linkend="reset_profiling">reset_profiling</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Funções Utilizadas</title>
-        <para>
-            Esta função utiliza as funções Scilab <literal>bytecode</literal> e
-            <literal>walkbytecode</literal>
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/profiling/plotprofile.xml b/scilab/modules/functions/help/pt_BR/profiling/plotprofile.xml
deleted file mode 100644 (file)
index 0706f40..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="plotprofile" xml:lang="en">
-    <refnamediv>
-        <refname>plotprofile</refname>
-        <refpurpose>extrai e exibe execução de profiles (dossiês) de uma função
-            Scilab
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>plotprofile(fun)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Parâmetros</title>
-        <variablelist>
-            <varlistentry>
-                <term>fun</term>
-                <listitem>
-                    <para>função Scilab compilada, ou nome de função (string), ou array
-                        de nomes de funções
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Descrição</title>
-        <para>
-            Para utilizar <literal>plotprofile</literal>, a função Scilab deve
-            ter sido preparada para profiling (análise de desempenho) (ver
-            exec).
-        </para>
-        <para>Quando tal função é executada, o sistema conta quantas vezes cada
-            linha foi executada e quanto tempo de cpu foi gasto para cada linha. Estes
-            dados são armazenados dentro da estrutura de dados da função. A função
-            <literal>plotprofile</literal> é um comando interativo que exibe os
-            resultados em uma janela gráfica. Quando uma linha é clcada, a fonte da
-            função é exibida com a linha selecionada realçada.
-        </para>
-        <para>NOTA: você deve clicar no item "Exit" na janela de gráficos para
-            sair de "plotprofile".
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[ 
-//definindo função e preparando-a para profiling
-deff('x=foo(n)',['if n==0 then'
-                 '  x=[]'
-                 'else'
-                 '  x=0'
-                 '  for k=1:n'
-                 '    s=svd(rand(n+10,n+10))'
-                 '    x=x+s(1)'
-                 '  end'
-                 'end'],'p')
-//chamando a função
-foo(30)
-//obtendo profiles de execução
-plotprofile(foo) // clique em Exit para sair
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Ver Também</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="showprofile">showprofile</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/profiling/profile.xml b/scilab/modules/functions/help/pt_BR/profiling/profile.xml
deleted file mode 100644 (file)
index 8940238..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="profile" xml:lang="pt">
-    <refnamediv>
-        <refname>profile</refname>
-        <refpurpose>extrai profiles (dossiês) de execução de uma função do
-            Scilab
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>c=profile(fun)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Parâmetro</title>
-        <variablelist>
-            <varlistentry>
-                <term>fun</term>
-                <listitem>
-                    <para>função Scilab</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>c</term>
-                <listitem>
-                    <para>uma matriz nx3 contendo os profiles de execução</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Descrição</title>
-        <para>
-            Para utilizar <literal>profile</literal> a função Scilab deve ter
-            sido preparada para profiling (análise de desempenho) (ver exec).
-        </para>
-        <para>Pata tal função, quando tal função é executada, o sistema conta
-            quantas vezes cada linha foi executada e quanto tempo de cpu foi gasto
-            para cada execução da linha. Estes dados são armazenados na estrutura de
-            dados da função. A função profile permite extrair esses dados e
-            retorná-los nas duas primeiras colunas de <literal>c</literal>. A terceira
-            coluna de <literal>c</literal> fornece a medida do esforço do
-            interpretador para a execução da linha correspondente. A i-ésima linha de
-            <literal>c</literal> corresponde à i-ésima linha da função (inclusa
-            primeiro)
-        </para>
-        <para>Note que, devido à precisão do clock do processador (tipicamente, um
-            microssegundo), algumas linhas executadas aparecem com tempo de execução
-            0, mesmo que o tempo de execução de cpu total realmente gasto seja
-            grande.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[ 
-//definindo a função e preparando-a para profiling
-deff('x=foo(n)',['if n==0 then'
-                 '  x=[]'
-                 'else'
-                 '  x=0'
-                 '  for k=1:n'
-                 '    s=svd(rand(n+10,n+10))'
-                 '    x=x+s(1)'
-                 '  end'
-                 'end'],'p')
-//chamando a função
-foo(10)
-//obtendo profiles de execução
-profile(foo)
-//chamando a função
-foo(20)
-profile(foo) //a execução de profiles é acumulada
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Ver Também</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="exec">exec</link>
-            </member>
-            <member>
-                <link linkend="deff">deff</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="showprofile">showprofile</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/profiling/remove_profiling.xml b/scilab/modules/functions/help/pt_BR/profiling/remove_profiling.xml
deleted file mode 100644 (file)
index 6fc9bc9..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-<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" xmlns:scilab="http://www.scilab.org" xml:id="remove_profiling" xml:lang="fr">
-    <refnamediv>
-        <refname>remove_profiling</refname>
-        <refpurpose>remove instruções de profiling (análise de performance) de uma
-            função
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>remove_profiling(funname)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Parâmetros</title>
-        <variablelist>
-            <varlistentry>
-                <term>funname</term>
-                <listitem>
-                    <para>string, o nome da função</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Descrição</title>
-        <para>
-            <literal>remove_profiling(funname)</literal> remove instruções de
-            profiling (se houver alguma) da função de nome
-            <literal>funname</literal>.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[ 
-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) //executando a função
-profile(foo) //extraindo informação de profile
-remove_profiling("foo")
- ]]></programlisting>
-    </refsection>
-    <refsection>
-        <title>Ver Também</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="add_profiling">remove_profiling</link>
-            </member>
-            <member>
-                <link linkend="reset_profiling">reset_profiling</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Funções Utilizadas</title>
-        <para>
-            Esta função utiliza as funções Scilab <literal>bytecode</literal> e
-            <literal>walkbytecode</literal>
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/profiling/reset_profiling.xml b/scilab/modules/functions/help/pt_BR/profiling/reset_profiling.xml
deleted file mode 100644 (file)
index a9192a4..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
--->
-<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" xmlns:scilab="http://www.scilab.org" xml:id="reset_profiling" xml:lang="fr">
-    <refnamediv>
-        <refname>reset_profiling</refname>
-        <refpurpose>reinicia contadores de profiling de uma função</refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>reset_profiling(funname)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Parâmetros</title>
-        <variablelist>
-            <varlistentry>
-                <term>funname</term>
-                <listitem>
-                    <para>string, o nome da função</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Descrição</title>
-        <para>
-            <literal>reset_profiling(funname)</literal> reinicia contadores de
-            profiling (se houver) da função de nome <literal>funname</literal>.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[ 
-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) //executando a função
-profile(foo) //extraindo informação de profile
-reset_profiling("foo")
-profile(foo) //extraindo informação de profile
- ]]></programlisting>
-    </refsection>
-    <refsection>
-        <title>Ver Também</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="reset_profiling">reset_profiling</link>
-            </member>
-            <member>
-                <link linkend="remove_profiling">remove_profiling</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Funções Utilizadas</title>
-        <para>
-            Esta função utiliza as funções Scilab <literal>bytecode</literal> e
-            <literal>walkbytecode</literal>
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/profiling/showprofile.xml b/scilab/modules/functions/help/pt_BR/profiling/showprofile.xml
deleted file mode 100644 (file)
index cc492f0..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="showprofile" xml:lang="en">
-    <refnamediv>
-        <refname>showprofile</refname>
-        <refpurpose>extrai e exibe profiles (dossiês) de execução de uma função
-            Scilab
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>showprofile(fun)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Parâmetros</title>
-        <variablelist>
-            <varlistentry>
-                <term>fun</term>
-                <listitem>
-                    <para>função Scilab</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Descrição</title>
-        <para>
-            Para utilizar <literal>showprofile</literal> a função Scilab deve
-            ter sido preparada para profiling (análise de performance) (ver
-            exec).
-        </para>
-        <para>Para tal função,Quando tal função é executada, o sistema conta
-            quantas número de vezes que cada linha é executada e quanto tempo de cpu é
-            gasto para execução de cada linha. Estes dados são armazenados dentro da
-            estrutura de dados da função. A função <literal>showprofile</literal>
-            retorna resultados de profiling (ver <literal>profile</literal>) com o
-            texto das linhas da função.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[ 
-//definindo função e preparando-a para profiling
-deff('x=foo(n)',['if n==0 then'
-                 '  x=[]'
-                 'else'
-                 '  x=0'
-                 '  for k=1:n'
-                 '    s=svd(rand(n+10,n+10))'
-                 '    x=x+s(1)'
-                 '  end'
-                 'end'],'p')
-//chamada à função
-foo(30)
-//obtendo profiles
-showprofile(foo)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Ver Também</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="plotprofile">plotprofile</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/pt_BR/recompilefunction.xml b/scilab/modules/functions/help/pt_BR/recompilefunction.xml
deleted file mode 100644 (file)
index e14fcdc..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="recompilefunction" xml:lang="en">
-    <refnamediv>
-        <refname>recompilefunction</refname>
-        <refpurpose>recompila uma função Scilab modificando o seu
-            tipo
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Seqüência de Chamamento</title>
-        <synopsis>recompilefunction(funname [,kind [,force]])</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Parâmetros</title>
-        <variablelist>
-            <varlistentry>
-                <term>funname</term>
-                <listitem>
-                    <para>string, nome da função a ser recompilada</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>kind</term>
-                <listitem>
-                    <para>
-                        string: <emphasis role="bold">"n"</emphasis> (não compilado,
-                        tipo 11), <emphasis role="bold">"c"</emphasis> (compilado, tipo 13)
-                        or <emphasis role="bold">"p"</emphasis> (compilado, tipo 13,
-                        preparado para profiling). Pardrão: "c".
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>force</term>
-                <listitem>
-                    <para>booleano. Se falso, a função é recompilada apenas se seu tipo
-                        mudar; se verdadeiro, é recompilada ainda que mantenha o tipo
-                        (notavelmente útil para compilar uma função "p" function, para
-                        reiniciar as estatísticas de profiling).
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Descrição</title>
-        <itemizedlist>
-            <listitem>
-                <para>
-                    E a recompila para o tipo
-                    desejado através de <link linkend="deff">deff</link>.
-                </para>
-            </listitem>
-        </itemizedlist>
-    </refsection>
-    <refsection>
-        <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[
-recompilefunction("asinh","p")
-for i=1:100; asinh(rand(100,100)); end
-showprofile(asinh)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Ver Também</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="function">function</link>
-            </member>
-            <member>
-                <link linkend="exec">exec</link>
-            </member>
-            <member>
-                <link linkend="deff">deff</link>
-            </member>
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Bibliografia</title>
-        <para>
-            <ulink url="http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation">http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation</ulink>
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ru_RU/bytecode.xml b/scilab/modules/functions/help/ru_RU/bytecode.xml
deleted file mode 100644 (file)
index 2182a1f..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) ????-2008 - INRIA Serge Steer
- *
- * Copyright (C) 2012 - 2016 - Scilab Enterprises
- *
- * This file is hereby licensed under the terms of the GNU GPL v2.0,
- * pursuant to article 5.3.4 of the CeCILL v.2.1.
- * This file was originally licensed under the terms of the CeCILL v2.1,
- * and continues to be available under such terms.
- * For more information, see the COPYING file which you should have received
- * along with this program.
- * === LICENSE_END ===
- *-->
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="bytecode">
-    <refnamediv>
-        <refname>bytecode</refname>
-        <refpurpose>
-            возвращает "байт-код" указанной функции в виде Scilab-массива и наоборот.
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Последовательность вызова</title>
-        <synopsis>
-            x = bytecode(f)
-            f = bytecode(x)
-        </synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Аргументы</title>
-        <variablelist>
-            <varlistentry>
-                <term>f</term>
-                <listitem>
-                    <para>
-                        Scilab-функция.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>x</term>
-                <listitem>
-                    <para>
-                        вектор-строка значений типа int32
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Описание</title>
-        <para>
-            <code>x = bytecode(f)</code> возвращает "байт-код" функции
-            <varname>f</varname> в виде целочисленного массива
-            <varname>x</varname>.
-        </para>
-        <para>
-            <code>f= bytecode(x)</code> возвращает в <varname>f</varname>
-            функцию, связанную с "байт-кодом", заданным в целочисленном
-            массиве <varname>x</varname>.
-            <warning>
-                Внимание: корректность <varname>x</varname> не проверяется.
-            </warning>
-        </para>
-    </refsection>
-    <refsection>
-        <title>Примечание</title>
-        <para>
-            Байт-код Scilab-функции будет в будущем значительно преобразован, поэтому использование этой функции должно быть ограничено обработкой инструкций профилирования.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Примеры</title>
-        <programlisting role="example"><![CDATA[
-function a=foo(),a=sin(3),endfunction
-bytecode(foo)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Смотрите также</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="add_profiling">add_profiling</link>
-            </member>
-            <member>
-                <link linkend="bytecodewalk">bytecodewalk</link>
-            </member>
-            <member>
-                <link linkend="macr2tree">macr2tree</link>
-            </member>
-        </simplelist>
-    </refsection>
-</refentry>
index f2feb6a..6c5e968 100644 (file)
                             </listitem>
                         </varlistentry>
                         <varlistentry>
-                            <term>'p'</term>
-                            <listitem>
-                                <para>
-                                    функция "скомпилирована" и подготовлена к профилированию (см. справку <link linkend="profile">profile</link>);
-                                </para>
-                            </listitem>
-                        </varlistentry>
-                        <varlistentry>
                             <term>'n'</term>
                             <listitem>
                                 <para>
diff --git a/scilab/modules/functions/help/ru_RU/listfunctions.xml b/scilab/modules/functions/help/ru_RU/listfunctions.xml
deleted file mode 100644 (file)
index 38ac955..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="listfunctions">
-    <refnamediv>
-        <refname>listfunctions</refname>
-        <refpurpose>
-            свойства всех функций в рабочем пространстве
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Последовательность вызова</title>
-        <synopsis>
-            [flist,compiled,profilable,called] = listfunctions([scope])
-        </synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Аргументы</title>
-        <variablelist>
-            <varlistentry>
-                <term>scope</term>
-                <listitem>
-                    <para>
-                        строка, <literal>"local"</literal> (по умолчанию) или <literal>"global"</literal>.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>flist</term>
-                <listitem>
-                    <para>
-                        массив строк, имена всех переменных-функций в
-                        указанном рабочем пространстве.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>compiled</term>
-                <listitem>
-                    <para>
-                        массив логических значений, ИСТИНА, если
-                        соответствующий элемент из списка
-                        <varname>flist</varname> имеет тип 13.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>profilable</term>
-                <listitem>
-                    <para>
-                        массив логических значений, ИСТИНА, если
-                        соответствующий элемент из списка
-                        <varname>flist</varname> имеет тип 13 и к тому
-                        же в псевдокоде функции найдена информация
-                        профилирования.
-                    </para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>called</term>
-                <listitem>
-                    <para>
-                        массив значений типа uint32, количество раз,
-                        когда соответствующий элемент из списка
-                        <varname>flist</varname> уже был вызван
-                        (ненулевой только для профилируемых функций).
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Описание</title>
-        <itemizedlist>
-            <listitem>
-                <para>
-                    Эта функция проверяет все переменные в рабочем
-                    пространстве (указанные с помощью функции
-                    <link linkend="who">who</link>) и собирает те,
-                    которые имеют тип 11 или 13; для последних
-                    вызывается <code>lst = macr2lst(fun)</code> для
-                    того, чтобы проверить магический вход профилирования
-                    в конце первой строки кода, т. е. <code>lst(5)(1)=="25"</code>.
-                </para>
-            </listitem>
-        </itemizedlist>
-    </refsection>
-    <refsection>
-        <title>Примеры</title>
-        <programlisting role="example"><![CDATA[
-recompilefunction("asinh","p")
-[flist,compiled,profilable,called] = listfunctions();
-flist(profilable)
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Смотрите также</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="function">function</link>
-            </member>
-            <member>
-                <link linkend="exec">exec</link>
-            </member>
-            <member>
-                <link linkend="deff">deff</link>
-            </member>
-            <member>
-                <link linkend="profile">profile</link>
-            </member>
-            <member>
-                <link linkend="recompilefunction">recompilefunction</link>
-            </member>
-            <member>
-                <link linkend="who">who</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>Литература</title>
-        <para>
-            <ulink url="http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation">http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation</ulink>
-        </para>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/macros/add_profiling.sci b/scilab/modules/functions/macros/add_profiling.sci
deleted file mode 100644 (file)
index f27f6e0..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2003-2008 - INRIA - Serge STEER <serge.steer@inria.fr>
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-// === LICENSE_END ===
-
-function add_profiling(funname)
-
-    if argn(2) < 1 then
-        error(sprintf(_("%s: Wrong number of input argument(s): %d expected.\n"), "addprofiling", 1));
-    end
-
-    //add profiling instruction bytecode after each function line
-    nsiz=6
-    execstr("code=bytecode("+funname+")")
-    lc=1
-    lc = lc + nsiz*double(code(lc)) + 1
-    lc = lc + nsiz*double(code(lc)) + 1
-    long=code(lc)
-    lc = lc+1
-    c=code(lc:$)
-    c1=bytecodewalk(c,15,addprof)
-    code=[code(1:lc-2) int32(size(c1,"*")) c1]
-    execstr(funname+" = resume(bytecode(code))")
-
-endfunction
-
-function [c,l]=addprof(l)
-    //add profiling instruction bytecode
-    c=int32([15 25 0 0]);l=l+1;
-endfunction
diff --git a/scilab/modules/functions/macros/bytecode.sci b/scilab/modules/functions/macros/bytecode.sci
deleted file mode 100644 (file)
index 4dac44d..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2003-2008 - INRIA - Serge STEER <serge.steer@inria.fr>
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-// === LICENSE_END ===
-
-function x=bytecode(f)
-    //returns the function f bytecode array in x
-    //should be hard-coded
-
-    if argn(2) < 1 then
-        error(sprintf(_("%s: Wrong number of input argument(s): %d expected.\n"), "bytecode", 1));
-    end
-
-    nsiz=6
-    if type(f)==8 then //bytecode to function
-        u=mopen(TMPDIR+"/%fun.bin","wb");
-        name_x=[673720353 673720360 673720360 673720360 673720360 673720360]
-        mput(int32([name_x  13]),"i",u)
-        mput(f,"i",u)
-        mclose(u)
-        load(TMPDIR+"/%fun.bin")
-    elseif type(f)==13 then //function to bytecode
-        warnMode = warning("query");
-        warning("off");
-        save(TMPDIR+"/%fun.bin",f)
-        warning(warnMode);
-        I=fileinfo(TMPDIR+"/%fun.bin");
-        u=mopen(TMPDIR+"/%fun.bin","rb");
-        mgeti(1+nsiz,"i",u);
-        x=mgeti(I(1)-(1+nsiz),"i",u);
-        mclose(u)
-    else
-        error(msprintf(gettext("%s: Wrong type for input argument #%d.\n"),"bytecode",1))
-    end
-endfunction
diff --git a/scilab/modules/functions/macros/bytecodewalk.sci b/scilab/modules/functions/macros/bytecodewalk.sci
deleted file mode 100644 (file)
index a64fa0d..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2003-2010 - INRIA - Serge STEER <serge.steer@inria.fr>
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-// === LICENSE_END ===
-
-function c1=bytecodewalk(code,query,job)
-    //walk along bytecode looking for a particular opcode (query) and
-    //applying a function (job) at this point
-    if argn(2) < 3 then
-        error(sprintf(_("%s: Wrong number of input argument(s): %d expected.\n"), "bytecodewalk", 3));
-    end
-    c1=[];
-    lc0=1;
-    lc=lc0;
-    long_walk=size(code,"*")
-    while lc<=long_walk
-        if code(lc)==query then
-            c1=[c1  code(lc0:lc-1)]
-            [ctemp,lc]=job(lc)
-            c1=[c1  ctemp]
-            lc0=lc
-        else
-            select code(lc)
-            case 0 then //deleted ops
-                lc=lc+double(code(lc+1))
-            case 1 then //stackp (obsolete)
-                lc=lc+1+nsiz
-            case 2 then //stackg
-                lc=lc+nsiz+3
-            case 3 then //string
-                ni=double(code(lc+1))
-                lc=lc+2+ni
-            case 4 then//[]
-                lc=lc+1
-            case 5 then //allops
-                lc=lc+4
-            case 6 then //num
-                lc=lc+3
-            case 7 then//for
-                c1=[c1 code(lc0:lc-1)]
-                ll=lc
-                lc=lc+1
-                long=double(code(lc))
-                lc=lc+1
-                cv=bytecodewalk(code(lc:lc+long-1),query,job)
-                lc=lc+long
-                long=double(code(lc))
-                lc=lc+1
-                id=code(lc:lc-1+nsiz)
-                lc=lc+nsiz
-                cc=bytecodewalk(code(lc:lc+long-1),query,job)
-                c1=[c1 int32(7) int32(size(cv,"*")) cv int32(size(cc,"*")) id cc]
-                lc=lc+long
-                lc0=lc
-            case 8 then //if
-                exec(walkclause,-1)
-            case 9 then //while
-                exec(walkclause,-1)
-            case 10 then//select case
-                c1=[c1 code(lc0:lc-1)]
-                ll=lc
-                long_tot=abs(double(code(lc+1)))
-                ncase=double(code(lc+2))
-                ctemp=code(lc:lc+2)
-                lc=lc+3
-
-                long_case_expr=double(code(lc))
-                lc=lc+1
-                c_case_expr=bytecodewalk(code(lc:lc+long_case_expr-1),query,job)
-                lc=lc+long_case_expr
-                long_case_expr=size(c_case_expr,"*")
-                ctemp=[ctemp int32(long_case_expr) c_case_expr]
-                for k=1:ncase+1
-                    long_case_expr=double(code(lc));
-                    lc=lc+1;
-                    c_case_expr=bytecodewalk(code(lc:lc+long_case_expr-1),query,job)
-                    lc=lc+long_case_expr;
-                    long_case_expr=size(c_case_expr,"*");
-                    long_case_then=double(code(lc))
-                    lc=lc+1
-                    c_case_then=bytecodewalk(code(lc:lc+long_case_then-1),query,job)
-                    lc=lc+long_case_then
-                    long_case_then=size(c_case_then,"*")
-                    ctemp=[ctemp int32(long_case_expr) c_case_expr int32(long_case_then) ...
-                    c_case_then]
-                end
-                //padding ???
-                if lc-ll<long_tot then ctemp=[ctemp code(lc:ll+long_tot-1)];lc=ll+long_tot;end
-
-                lc0=lc
-                //if size(ctemp,'*')<>long_tot then pause,end
-                long_tot=size(ctemp,"*")
-                ctemp(2)=int32(long_tot)
-                c1=[c1  ctemp]
-            case 11 then //try catch
-                long_try=double(code(lc+1))
-                long_catch=double(code(lc+2))
-                lc=lc+3
-                c_try=bytecodewalk(code(lc:lc+long_try-1),query,job)
-                lc=lc+long_try
-                long_try=size(c_try,"*")
-
-                c_catch=bytecodewalk(code(lc:lc+long_catch-1),query,job)
-                lc=lc+long_catch
-                long_catch=size(c_catch,"*")
-                c1=[c1 int32([11 long_try long_catch]) c_try c_catch]
-                lc0=lc
-            case 12 then //pause
-                lc=lc+1
-            case 13 then //break
-                lc=lc+1
-            case 14 then //abort
-                lc=lc+1
-            case 15 then //eol
-                lc=lc+1
-            case 16 then //line num
-                lc=lc+2
-            case 17 then //return
-                lc=lc+1
-            case 18 then //nmark named variable
-                lc=lc+1+nsiz
-            case 19 then  //Mkindx
-                lc=lc+3
-            case 20 then
-                lc=lc+1
-            case 21 then //begrhs
-                lc=lc+1
-            case 22 then //printmode
-                lc=lc+2
-            case 23 then //name2var
-                lc=lc+1+nsiz
-            case 24 then //
-                lc=lc+1
-            case 25 then //profile
-                lc=lc+3
-            case 26 then //vector of string
-                n=double(code(lc+1)*code(lc+2))
-                nc=double(code(lc+4+n))-1
-                lc=lc+5+n+nc
-            case 27 then //varfunptr
-                lc=lc+3+nsiz
-            case 28 then //
-                lc=lc+1
-            case 29 then //assignment
-                nlhs=double(code(lc+1))
-                lc=lc+3+nlhs*(nsiz+1)
-            case 30 then // skip logical evaluation
-                lc=lc+3
-            case 31 then //comment
-                lc=lc+2+double(code(lc+1))
-            case 99 then
-                lc=lc+1
-            else//Matfns
-                lc=lc+4
-            end
-        end
-    end
-    c1=[c1 code(lc0:$)]
-endfunction
-function walkclause
-
-    if code(lc+1)==0 then //very old code
-        error(msprintf(gettext("%s: obsolete op-code %d.\n"),"bytecodewalk",code(lc)))
-    end
-    c1=[c1 code(lc0:lc-1)]
-    ll=lc
-    long_tot=abs(double(code(lc+1)))
-    ncase=double(code(lc+2))
-
-    ctemp=code(lc:lc+3)
-    lc=lc+4
-
-    for k=1:ncase+1
-        long_if_expr=double(code(lc))
-        lc=lc+1
-        c_if_expr=bytecodewalk(code(lc:lc+long_if_expr-1),query,job)
-        lc=lc+long_if_expr
-        long_if_expr=size(c_if_expr,"*")
-        long_if_then=double(code(lc))
-        lc=lc+1
-        c_if_then=bytecodewalk(code(lc:lc+long_if_then-1),query,job)
-        lc=lc+long_if_then
-        long_if_then=size(c_if_then,"*")
-        ctemp=[ctemp int32(long_if_expr) c_if_expr int32(long_if_then) ...
-        c_if_then]
-    end
-    //padding ???
-    if lc-ll<long_tot then ctemp=[ctemp code(lc:ll+long_tot-1)];lc=ll+long_tot;end
-    lc0=lc
-    long_tot=size(ctemp,"*")
-    ctemp(2)=-int32(long_tot)
-    c1=[c1  ctemp]
-endfunction
diff --git a/scilab/modules/functions/macros/get_profile.sci b/scilab/modules/functions/macros/get_profile.sci
deleted file mode 100644 (file)
index aaa4e4a..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) INRIA
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-// === LICENSE_END ===
-
-function count=get_profile(lst,ilst)
-    count=[];
-    ops=0;
-    nlst=size(lst);
-    while ilst<=nlst then
-        if type(lst(ilst))==15 then
-            typ=lst(ilst)(1);
-            c1=[];
-            for ic=2:size(lst(ilst))
-                c1=[c1;get_profile(lst(ilst)(ic),1)];
-            end
-            count=[count;c1]
-            ilst=ilst+1;
-        else
-            ops=ops+1;
-            //real timing line found
-            if lst(ilst)(1)=="25" then
-                count=[count;[evstr(lst(ilst)(2:3)),max(0,ops-2)]];
-                ops=0;
-            elseif lst(ilst)(1)=="3" then
-                //possibly, non interpreted code line (e.g. subfunction definition header)
-                ncode=1;
-            elseif lst(ilst)(1)=="26" then
-                //non interpreted code lines (e.g. subfunction definition body)
-                // macr2lst keeps whitespace (even too much... leading whitespace
-                //   makes a new code line), fun2string no. See bug 2413
-                codelines=lst(ilst); codelines=codelines(4:$);
-                ncode=length(stripblanks(codelines)<>"");
-            elseif lst(ilst)(1)=="20" &  lst(ilst)(2)=="deff" then
-                //subfunction definition trailer
-                count=[count;zeros(ncode,3)];
-            end
-        end
-        ilst=ilst+1;
-    end
-endfunction
diff --git a/scilab/modules/functions/macros/listfunctions.sci b/scilab/modules/functions/macros/listfunctions.sci
deleted file mode 100644 (file)
index 2d4523a..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2008 - INRIA
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-// === LICENSE_END ===
-
-function [flist,compiled,profilable,called]=listfunctions(scope)
-    if ~exists("scope","local") then scope="local"; end
-    nam=who(scope)'
-    called=uint32(zeros(nam)); afun=(called==1); pfun=afun; cfun=pfun;
-    for i=1:size(nam,2)
-        clear rvar lst;
-        // rvar is cleared to avoid function redefinition warning
-        // lst (topmost, variable size) is cleared to speed up garbage collection
-        if scope=="global" then global(nam(i)); end
-        execstr("rvar="+nam(i));
-        if type(rvar)==11 then afun(i)=%t; end
-        if type(rvar)==13 then
-            afun(i)=%t; cfun(i)=%t;
-            lst=macr2lst(rvar)
-            pfun(i)=and(lst(5)(1)=="25")
-            if pfun(i) then execstr("called(i)="+lst(5)(2)); end
-        end
-    end
-    flist=nam(afun)
-    compiled=cfun(afun)
-    profilable=pfun(afun)
-    called=called(afun)
-endfunction
diff --git a/scilab/modules/functions/macros/plotprofile.sci b/scilab/modules/functions/macros/plotprofile.sci
deleted file mode 100644 (file)
index b38f533..0000000
+++ /dev/null
@@ -1,182 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2008 - INRIA
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-// === LICENSE_END ===
-
-function plotprofile(fun)
-
-    if argn(2) < 1 then
-        error(sprintf(_("%s: Wrong number of input argument(s): %d expected.\n"), "plotprofile", 1));
-    end
-
-    sep="="
-    sep=part(sep,ones(1,72))
-
-    if type(fun)==13 then
-        lst=macr2lst(fun);
-        count=profile(lst);count(:,3)=count(:,3).*count(:,1);
-        txt=fun2string(lst,"fun");
-        m=min(size(count,1),size(txt,1))
-        txt=txt(1:m);count=count(1:m,:)
-        txt(txt=="")=" "
-        bnd=[];nf=0;
-    elseif type(fun)==10 then
-        nf=size(fun,"*")
-        txt=[];bnd=[];count=[];
-        for k=1:nf
-            execstr("lst=macr2lst("+fun(k)+")")
-            c=profile(lst);c(:,3)=c(:,3).*c(:,1);
-            t=fun2string(lst,fun(k))
-            m=min(size(c,1),size(t,1))
-            t=t(1:m);c=c(1:m,:)
-            t(t=="")=" "
-            if txt<>[] then
-                txt=[txt;"/////////////////////////////////////////////"]
-                bnd=[bnd,size(txt,1)]
-                count=[count;[0 0 0]]
-            end
-            txt=[txt;t]
-            count=[count;c]
-        end
-    end
-    n=size(count,1)
-    if n==0 then
-        error(msprintf(gettext("%s: Wrong values for input argument: No profile data in the function\n"),"plotprofile"))
-    end
-
-    step=ceil(n/15)
-    nn=ceil((n+1)/step)
-    nm=nn*step
-    nlines=size(count,1)
-
-    win=sum(winsid())+1
-    scf(win)
-    drawlater
-    axes=[];marker=[];
-    subplot(311)
-    ncalls=count(:,1); mx=max(ncalls)
-    plot2d([],[],rect=[0.5,0,nm+0.5,max(mx*1.02,1)]); axes=gca()
-    xrects([(1:nlines)'-0.5,ncalls,ones(ncalls),ncalls]',2*ones(ncalls))
-    xrects([(1:nlines)'-0.5,ncalls,ones(ncalls),ncalls]',0*ones(ncalls))
-    xarrows([1,1],[1.5*mx,0],5,5); marker=gce()
-    xtitle("# calls")
-    //separator, if more that 1 function is given
-    xsegs(ones(2,1)*bnd,[0;1.5*mx]*ones(bnd),0*ones(bnd))
-    xp=[0 bnd]+1;yp=mx*0.9;
-    for k=1:nf, xstring(xp(k),yp," "+fun(k)+" ",0,1); end
-
-
-    subplot(312)
-    ncompl=count(:,3); mx=max(1,max(ncompl))
-    plot2d([],[],rect=[0.5,0,nm+0.5,max(mx*1.02,1)]); axes(2)=gca()
-    xrects([(1:nlines)'-0.5,ncompl,ones(ncompl),ncompl]',3*ones(ncompl))
-    xrects([(1:nlines)'-0.5,ncompl,ones(ncompl),ncompl]',0*ones(ncompl))
-    xarrows([1,1],[1.5*mx,0],5,5); marker(2)=gce()
-    xtitle(gettext("Complexity"))
-    xsegs(ones(2,1)*bnd,[0;1.5*mx]*ones(bnd),0*ones(bnd))
-
-    subplot(313)
-    tcpu=count(:,2); mx=max(tcpu)
-    plot2d([],[],rect=[0.5,0,nm+0.5,max(mx*1.02,1e-6)]); axes(3)=gca()
-    xtitle("Cpu time (total "+string(sum(count(:,2)))+" sec)","line")
-    xrects([(1:nlines)'-0.5,tcpu,ones(tcpu),tcpu]',4*ones(tcpu))
-    xrects([(1:nlines)'-0.5,tcpu,ones(tcpu),tcpu]',0*ones(tcpu))
-    xarrows([1,1],[1.5*mx,0],5,5); marker(3)=gce()
-    xsegs(ones(2,1)*bnd,[0;1.5*mx]*ones(bnd),0*ones(bnd))
-    drawnow
-
-    for i=1:3; axes(i).tight_limits="on"; end
-
-    delmenu(win,gettext("Tools"));
-    delmenu(win,gettext("Edit"));
-    delmenu(win,gettext("?"));
-
-    addmenu(win,gettext("Exit"),list(0,"Exit"));
-    str = "execstr(Exit_"+string(win)+"(1))"
-
-    xinfo(gettext("Click to get corresponding line, move with a-z."))
-
-    profpath = TMPDIR+"/profiled.sci"
-    mputl(txt,profpath);
-    editor(profpath, 1);
-
-    k=1
-    while %t
-        if ~or(winsid()==win) then break,end
-        [c_i,c_x,c_y,cw,cm]=xclick()
-        if (c_i <0 & cm==str) | c_i==-100 | ~or(winsid()==win) then break,end
-        //if one of the panels has been zoomed, zoom (horizontally)all of them
-        // (partially, this is a workaround for bug #1618)
-        // [the update is carried on only after the next xclick -- why?]
-        Xb=[axes(1).zoom_box([1,3])', axes(2).zoom_box([1,3])',..
-        axes(3).zoom_box([1,3])']
-        drawlater
-        //treat here also if all the panes were zoomed but key navigation
-        // brought the cursor out of window
-        if ~and(Xb(1,:)==Xb(1,1)) | ~and(Xb(2,:)==Xb(2,1)) | size(Xb,2)<>3 |..
-            ~and(k<Xb(1,:)) | ~and(k>Xb(2,:)) then
-            if Xb<>[] then
-                newXmin=min(max(Xb(1,:)),k-1); newXmax=max(min(Xb(2,:)),k+1)
-                for i=1:3
-                    // vertical zoom is restored to default
-                    yrange=axes(i).data_bounds(:,2)
-                    axes(i).zoom_box=[newXmin,yrange(1),newXmax,yrange(2)];
-                end
-            else
-                for i=1:3 axes(i).zoom_box=[]; end
-            end
-        end
-        if cw==win then
-            if or(c_i==(0:5)) then
-                k=min(n,max(1,round(c_x)))
-            end
-            if or(c_i==[65 97 65361]) then
-                k=max(1,k-1)
-            end
-            if or(c_i==[90 122 65363]) then
-                k=min(n,k+1)
-            end
-            kstr = string(k);
-            if isempty(kstr) then
-                kstr = "";
-            end
-            ncallsstr = string(ncalls(k));
-            if isempty(ncallsstr) then
-                ncallsstr = "";
-            end
-            tcpustr = string(tcpu(k));
-            if isempty(tcpustr) then
-                tcpustr = "";
-            end
-            if ncalls(k)==1 then
-                msg=msprintf(gettext("line %s [%s call, %s sec] :: "), kstr, ncallsstr, tcpustr) + txt(k);
-            else
-                msg=msprintf(gettext("line %s [%s calls, %s sec] :: "), kstr, ncallsstr, tcpustr) + txt(k);
-            end
-
-            editor(profpath,k)
-        end
-        for i=1:3
-            d=marker(i).data;
-            marker(i).data=[k,d(1,2);k,d(2,2)]
-        end
-        drawnow
-        xinfo(msg)
-    end
-    endprof()
-
-endfunction
-
-function endprof()
-    if or(winsid()==(win+1)) then xdel(win+1);end
-    if or(winsid()==(win)) then xdel(win);end
-endfunction
-
diff --git a/scilab/modules/functions/macros/profile.sci b/scilab/modules/functions/macros/profile.sci
deleted file mode 100644 (file)
index 4b8eebe..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2008 - INRIA
-// Copyright (C) 2013 - Samuel GOUGEON : bug #13146 fixed
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-// === LICENSE_END ===
-
-function count = profile(fun)
-    if argn(2) < 1 then
-        error(sprintf(_("%s: Wrong number of input argument(s): %d expected.\n"), "profile", 1));
-    end
-    if type(fun)==13 then
-        lst = macr2lst(fun)
-    else
-        lst = fun
-    end
-    i = 5
-    if lst(4)(1)=="31"
-        i = 6
-    end
-    if lst(i)(1)<>"25" then
-        error(msprintf(gettext("%s: The function has not been built for profiling"), "profile"))
-    end
-    count = get_profile(lst,4)
-    count = count(1:$-1,:)
-    count(:,2) = count(:,2)/1000000
-endfunction
diff --git a/scilab/modules/functions/macros/recompilefunction.sci b/scilab/modules/functions/macros/recompilefunction.sci
deleted file mode 100644 (file)
index 7801795..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) INRIA
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-// === LICENSE_END ===
-
-function recompilefunction(funname,kind,force)
-    if argn(2) < 1 then
-        error(sprintf(_("%s: Wrong number of input argument(s): %d to %d expected.\n"), "recompilefunction", 1, 3));
-    end
-    if ~exists("force","local") then force=%f; end
-    if ~exists("kind","local") then kind="c"; end
-    if ~exists(funname)
-        error(msprintf(gettext("No variable named: %s.\n"),funname))
-    end
-    clear fvar funtext tempfun
-    execstr("fvar="+funname)
-    if ~or(type(fvar)==[11 13]) then
-        error(msprintf(gettext("%s: Wrong value for input argument #%d: A Scilab function name is expected.\n"),"recompilefunction",1))
-    end
-    if type(fvar)==11 & ~force then
-        oldkind="n"
-        if kind=="n" then
-            warning(msprintf(gettext("%s is already noncompiled.\n"),funname))
-            return
-        end
-        //can't avoid "Warning: redefining function: fvar", sorry
-        //    if kind=="c" then comp(fvar); end
-        //    if kind=="p" then comp(fvar,2); end
-        //    execstr(funname+"=resume(fvar)")
-        //or:
-        [out,in,funtext]=string(fvar);
-        deff("["+strcat(out,",")+"]=tempfun("+strcat(in,",")+")",..
-        funtext,kind)
-        execstr(funname+"=resume(tempfun)")
-    elseif type(fvar)==13 then
-        lst=macr2lst(fvar)
-        if lst(5)(1)=="25" then oldkind="p"; else oldkind="c"; end
-        if kind=="c" & oldkind=="c" & ~force then
-            warning(msprintf(gettext("%s is already compiled.\n"),funname))
-            return
-        end
-        if kind=="p" & oldkind=="p" & ~force then
-            warning(msprintf(gettext("%s is already compiled for profiling.\n"),funname))
-            return
-        end
-        funtext=fun2string(lst,"tempfun")
-        deff(strsubst(funtext(1),"function ",""),funtext(2:$-1),kind)
-        execstr(funname+"=resume(tempfun)")
-    end
-endfunction
diff --git a/scilab/modules/functions/macros/remove_profiling.sci b/scilab/modules/functions/macros/remove_profiling.sci
deleted file mode 100644 (file)
index 5c54ff7..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2003-2008 - INRIA - Serge STEER <serge.steer@inria.fr>
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-// === LICENSE_END ===
-
-function remove_profiling(funname)
-    //remove all profiling instruction bytecode
-    if argn(2) < 1 then
-        error(sprintf(_("%s: Wrong number of input argument(s): %d expected.\n"), "remove_profiling", 1));
-    end
-    nsiz=6
-    execstr("code=bytecode("+funname+")")
-    lc=1
-    lc = lc + nsiz*double(code(lc)) + 1
-    lc = lc + nsiz*double(code(lc)) + 1
-    long=code(lc)
-    lc = lc+1
-    c=code(lc:$)
-    c1=bytecodewalk(c,25,rmprof)
-    code=[code(1:lc-2) int32(size(c1,"*")) c1]
-    execstr(funname+" = resume(bytecode(code))")
-endfunction
-function [c,l]=rmprof(l)
-    //remove profiling instruction bytecode
-    c=[];l=l+3;
-endfunction
diff --git a/scilab/modules/functions/macros/reset_profiling.sci b/scilab/modules/functions/macros/reset_profiling.sci
deleted file mode 100644 (file)
index 8bb1098..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2003-2008 - INRIA - Serge STEER <serge.steer@inria.fr>
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-// === LICENSE_END ===
-
-function reset_profiling(funname)
-    //reset profiling data in bytecode
-    if argn(2) < 1 then
-        error(sprintf(_("%s: Wrong number of input argument(s): %d expected.\n"), "reset_profiling", 1));
-    end
-    nsiz=6
-    execstr("code=bytecode("+funname+")")
-    lc=1
-    lc = lc + nsiz*double(code(lc)) + 1
-    lc = lc + nsiz*double(code(lc)) + 1
-    long=code(lc)
-    lc = lc+1
-    c=code(lc:$)
-    c1=bytecodewalk(c,25,resetprof)
-    code=[code(1:lc-2) int32(size(c1,"*")) c1]
-    execstr(funname+" = resume(bytecode(code))")
-endfunction
-function [c,l]=resetprof(l)
-    //reset profiling data in bytecode
-    c=int32([25 0 0]);l=l+3;
-endfunction
diff --git a/scilab/modules/functions/macros/showprofile.sci b/scilab/modules/functions/macros/showprofile.sci
deleted file mode 100644 (file)
index 7193008..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) INRIA
-// Copyright (C) 2013 - Samuel GOUGEON
-// Copyright (C) 2014 - Scilab Enterprises
-//
-// Copyright (C) 2012 - 2016 - Scilab Enterprises
-//
-// This file is hereby licensed under the terms of the GNU GPL v2.0,
-// pursuant to article 5.3.4 of the CeCILL v.2.1.
-// This file was originally licensed under the terms of the CeCILL v2.1,
-// and continues to be available under such terms.
-// For more information, see the COPYING file which you should have received
-// along with this program.
-// === LICENSE_END ===
-
-function showprofile(fun)
-    if argn(2) < 1 then
-        error(sprintf(_("%s: Wrong number of input argument(s): %d expected.\n"), "showprofile", 1));
-    end
-
-    // get profiling results
-    lst = macr2lst(fun);
-    prof = profile(lst);
-
-    // convert to string profiling results
-    nb_calls = string(prof(:,1));
-    cpu_time = string(round(100*prof(:,2))/100);
-    effort = string(prof(:,3));
-
-    // get function code
-    code = fun2string(lst, "fun");
-
-    // line numbers, right justified
-    line_numbers = string(1:size(code, "r"))';
-    line_numbers = justify(line_numbers, "r");
-
-    // left justify
-    nb_calls = justify(nb_calls, "l");
-    cpu_time = justify(cpu_time, "l");
-    effort = justify(effort, "l");
-
-    printf("|%s|%s|%s| %s: %s\n", nb_calls, cpu_time, effort, line_numbers, code);
-endfunction
diff --git a/scilab/modules/functions/tests/nonreg_tests/bug_13146.dia.ref b/scilab/modules/functions/tests/nonreg_tests/bug_13146.dia.ref
deleted file mode 100644 (file)
index 48fd627..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-//
-// <-- CLI SHELL MODE -->
-//
-// <-- ENGLISH IMPOSED -->
-//
-// <-- Non-regression test for bug 13146 -->
-//
-// <-- Bugzilla URL -->
-// http://bugzilla.scilab.org/show_bug.cgi?id=13146
-//
-// <-- Short Description -->
-// profile failed when a comment was at the same line as a function declaration.
-function A() // Comment
-endfunction
-add_profiling("A");
-Warning : redefining function: A                       . Use funcprot(0) to avoid this message
-
-A();
-prof = profile(A);
-assert_checkequal(prof(:, 2:3), [0 1 ; 0 0]);
diff --git a/scilab/modules/functions/tests/nonreg_tests/bug_13146.tst b/scilab/modules/functions/tests/nonreg_tests/bug_13146.tst
deleted file mode 100644 (file)
index 923103e..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-//
-// <-- CLI SHELL MODE -->
-//
-// <-- ENGLISH IMPOSED -->
-//
-// <-- Non-regression test for bug 13146 -->
-//
-// <-- Bugzilla URL -->
-// http://bugzilla.scilab.org/show_bug.cgi?id=13146
-//
-// <-- Short Description -->
-// profile failed when a comment was at the same line as a function declaration.
-
-function A() // Comment
-endfunction
-
-add_profiling("A");
-A();
-prof = profile(A);
-
-assert_checkequal(prof(:, 2:3), [0 1 ; 0 0]);
diff --git a/scilab/modules/functions/tests/nonreg_tests/bug_2098.dia.ref b/scilab/modules/functions/tests/nonreg_tests/bug_2098.dia.ref
deleted file mode 100644 (file)
index 40fa779..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-// <-- CLI SHELL MODE -->
-// <-- Non-regression test for bug 2098 -->
-//
-// <-- Bugzilla URL -->
-// http://bugzilla.scilab.org/show_bug.cgi?id=2098
-//
-// <-- Short Description -->
-//    showprofile(test) makes Scilab crash if the function 'test' has not
-//    been prepared for profiling, as demonstrated by the following example:
-//
-//    -->function test
-//    -->disp('test')
-//    -->endfunction
-//
-//    -->test
-//
-//     test
-//
-//    -->showprofile(test)  // this line makes Scilab exit silently
-function test
-    disp("test");
-endfunction
-ierr = execstr("showprofile(test)","errcatch");
-if ierr <> 999 then bugmes();quit;end
diff --git a/scilab/modules/functions/tests/nonreg_tests/bug_2098.tst b/scilab/modules/functions/tests/nonreg_tests/bug_2098.tst
deleted file mode 100644 (file)
index 28cdaa6..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-
-// <-- CLI SHELL MODE -->
-
-// <-- Non-regression test for bug 2098 -->
-//
-// <-- Bugzilla URL -->
-// http://bugzilla.scilab.org/show_bug.cgi?id=2098
-//
-// <-- Short Description -->
-//    showprofile(test) makes Scilab crash if the function 'test' has not
-//    been prepared for profiling, as demonstrated by the following example:
-//
-//    -->function test
-//    -->disp('test')
-//    -->endfunction
-//
-//    -->test
-//
-//     test
-//
-//    -->showprofile(test)  // this line makes Scilab exit silently
-
-function test
-    disp("test");
-endfunction
-
-ierr = execstr("showprofile(test)","errcatch");
-if ierr <> 999 then pause,end
diff --git a/scilab/modules/functions/tests/nonreg_tests/bug_6849.dia.ref b/scilab/modules/functions/tests/nonreg_tests/bug_6849.dia.ref
deleted file mode 100644 (file)
index 010c1b0..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2010 - INRIA - Serge Steer
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-//
-// <-- CLI SHELL MODE -->
-//
-// <-- ENGLISH IMPOSED -->
-//
-// <-- Non-regression test for bug 6849 -->
-//
-// <-- Bugzilla URL -->
-// http://bugzilla.scilab.org/show_bug.cgi?id=6849
-//
-// <-- Short Description -->
-// add_profiling badly handles else that may make plotprofile function
-// produce an incorrect report
-function t
-  if ok then
-    //i
-  else
-    //l
-  end
-endfunction
-add_profiling('t')
-Warning : redefining function: t                       . Use funcprot(0) to avoid this message
-
-ref=[0,0,0;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,0];
-if or(profile(t)<>ref ) then bugmes();quit;end
-function t1
-  if ok then
-    //i
-  elseif a then
-    //e
-  else
-    //l
-  end
-endfunction
-add_profiling('t1')
-Warning : redefining function: t1                      . Use funcprot(0) to avoid this message
-
-ref=[0,0,0;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,0];
-if or(profile(t1)<>ref) then bugmes();quit;end
-function t2
-  while ok 
-    //w 
-  else
-    //e
-  end      
-endfunction
-add_profiling('t2')
-Warning : redefining function: t2                      . Use funcprot(0) to avoid this message
-
-ref=[0,0,0;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,0]; 
-if or(profile(t2)<>ref ) then bugmes();quit;end
-function t3
-  select x
-  case 1
-    //1
-  case 2
-    //2
-  end      
-endfunction
-add_profiling('t3')
-Warning : redefining function: t3                      . Use funcprot(0) to avoid this message
-
-ref=[0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,0];
-if or(profile(t3)<>ref ) then bugmes();quit;end
-function t4
-  select x
-  case 1
-    //1
-  case 2
-    //2
-  else
-    //e
-  end      
-endfunction
-add_profiling('t4')
-Warning : redefining function: t4                      . Use funcprot(0) to avoid this message
-
-ref=[0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,0];
-if or(profile(t4)<>ref ) then bugmes();quit;end
diff --git a/scilab/modules/functions/tests/nonreg_tests/bug_6849.tst b/scilab/modules/functions/tests/nonreg_tests/bug_6849.tst
deleted file mode 100644 (file)
index bc62f73..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2010 - INRIA - Serge Steer
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-//
-// <-- NOT FIXED -->
-//
-// <-- CLI SHELL MODE -->
-//
-// <-- ENGLISH IMPOSED -->
-//
-// <-- Non-regression test for bug 6849 -->
-//
-// <-- Bugzilla URL -->
-// http://bugzilla.scilab.org/show_bug.cgi?id=6849
-//
-// <-- Short Description -->
-// add_profiling badly handles else that may make plotprofile function
-// produce an incorrect report
-
-function t
-    if ok then
-        //i
-    else
-        //l
-    end
-endfunction
-add_profiling("t")
-ref=[0,0,0;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,0];
-if or(profile(t)<>ref ) then pause,end
-
-
-
-function t1
-    if ok then
-        //i
-    elseif a then
-        //e
-    else
-        //l
-    end
-endfunction
-add_profiling("t1")
-ref=[0,0,0;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,0];
-if or(profile(t1)<>ref) then pause,end
-
-
-function t2
-    while ok
-        //w
-    end
-endfunction
-
-add_profiling("t2")
-ref=[0,0,0;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,0];
-if or(profile(t2)<>ref ) then pause,end
-
-function t3
-    select x
-    case 1
-        //1
-    case 2
-        //2
-    end
-endfunction
-
-add_profiling("t3")
-ref=[0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,0];
-if or(profile(t3)<>ref ) then pause,end
-
-function t4
-    select x
-    case 1
-        //1
-    case 2
-        //2
-    else
-        //e
-    end
-endfunction
-
-add_profiling("t4")
-ref=[0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,1;0,0,0;0,0,0];
-if or(profile(t4)<>ref ) then pause,end
-
diff --git a/scilab/modules/functions/tests/unit_tests/bytecode.dia.ref b/scilab/modules/functions/tests/unit_tests/bytecode.dia.ref
deleted file mode 100644 (file)
index c616d21..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2008 - INRIA - Serge STEER <serge.steer@scilab.org>
-// Copyright (C) 2008 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-// <-- CLI SHELL MODE -->
-//build the list of loaded libs
-%libs=[];
-for %name=who('local')'
-  if %name<>'ans' then
-    execstr('%typ=type('+%name+')');
-    if %typ==14 then 
-      if and(%name<>['parameterslib','simulated_annealinglib','genetic_algorithmslib','scilab2fortranlib']) then
-        %libs=[%libs %name];
-      end
-    end
-  end
-end
-for Lib=%libs
-  execstr('funs=string('+Lib+')''');
-  funs(1)=[];
-  funcprot(0);
-  for fun=funs
-    if execstr('f='+fun','errcatch')==0 then
-      if type(f)==13 then
-        if execstr("add_profiling(fun)"    ,"errcatch"  ) <> 0 then bugmes();quit;end
-        if execstr("remove_profiling(fun)" ,"errcatch" )  <> 0 then bugmes();quit;end
-        if execstr("c=bytecode(f)"         ,"errcatch"  ) <> 0 then bugmes();quit;end
-        if execstr("c1=bytecode("+fun+")"  ,"errcatch"  ) <> 0 then bugmes();quit;end
-        if c<>c1 then bugmes();quit;end
-      end
-    end
-  end
-end
diff --git a/scilab/modules/functions/tests/unit_tests/bytecode.tst b/scilab/modules/functions/tests/unit_tests/bytecode.tst
deleted file mode 100644 (file)
index f37be82..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2008 - INRIA - Serge STEER <serge.steer@scilab.org>
-// Copyright (C) 2008 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-
-// <-- CLI SHELL MODE -->
-
-//build the list of loaded libs
-
-%libs=[];
-
-for %name=who('local')'
-  if %name<>'ans' then
-    execstr('%typ=type('+%name+')');
-    if %typ==14 then 
-      if and(%name<>['parameterslib','simulated_annealinglib','genetic_algorithmslib','scilab2fortranlib']) then
-        %libs=[%libs %name];
-      end
-    end
-  end
-end
-
-for Lib=%libs
-  execstr('funs=string('+Lib+')''');
-  funs(1)=[];
-  funcprot(0);
-  for fun=funs
-    if execstr('f='+fun','errcatch')==0 then
-      if type(f)==13 then
-        if execstr("add_profiling(fun)"    ,"errcatch"  ) <> 0 then pause,end
-        if execstr("remove_profiling(fun)" ,"errcatch" )  <> 0 then pause,end
-        if execstr("c=bytecode(f)"         ,"errcatch"  ) <> 0 then pause,end
-        if execstr("c1=bytecode("+fun+")"  ,"errcatch"  ) <> 0 then pause,end
-        if c<>c1 then pause,end
-      end
-    end
-  end
-end
index ea95f83..a33c414 100644 (file)
@@ -1924,9 +1924,6 @@ mdelete
 mkdir
 rmdir
 scanf
-add_profiling
-bytecode
-bytecodewalk
 check_gateways
 createfun
 genlib
@@ -1934,14 +1931,7 @@ get_function_path
 get_profile
 getd
 head_comments
-listfunctions
 macrovar
-plotprofile
-profile
-recompilefunction
-remove_profiling
-reset_profiling
-showprofile
 warnobsolete
 %_gsort
 %_unwrap