<div><font color="#333333"><font><font face="arial,helvetica,sans-serif">Hi Samuel,</font></font></font></div>
<div><font color="#333333"><font><font face="arial,helvetica,sans-serif"></font></font></font> </div>
<div><font color="#333333"><font><font face="arial,helvetica,sans-serif">It works beautifully now; thank you for helping me understand how to use the profiling functions correctly. </font></font></font></div>
<div><font color="#333333"><font><font face="arial,helvetica,sans-serif"></font></font></font> </div>
<div><font color="#333333"><font><font face="arial,helvetica,sans-serif">Candio </font></font></font></div>
<div><br></div>
<div class="gmail_quote">On Wed, Oct 22, 2014 at 9:30 AM, Samuel GOUGEON [via Scilab / Xcos - Mailing Lists Archives] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4031421&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hello Candio, <br>I just caught it: add_profile() prepares the function to profiling. But then, the profile is really set when calling the function. Each new call cumulates the execution time and occurrence numbers for each line. In your case, you did not call the function at all before asking to display its profile. After add_profile, and before any profile display (profile, showprofile, ..), just call the function ; actually execute it. Then, you will see its profile actualized with non-null results. <br>Regards <br>Samuel <br><br>----- Mail original ----- <br>De: "Candio" <<a href="http://user/SendEmail.jtp?type=node&node=4031420&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a>> <br>À: <a href="http://user/SendEmail.jtp?type=node&node=4031420&i=1" rel="nofollow" target="_blank" link="external">[hidden email]</a> <br>Envoyé: Mardi 21 Octobre 2014 22:42:42 <br>Objet: Re: [Scilab-users] interpreting showprofile results <br>
<div>
<div class="h5"><br><br>In the meantime, I did try to multiply by 1000, but it appears that the results are identically equal to 0 - not just off an order of magnitude. <br><br>format(20); <br>profile(myfun) <br>ans = <br><br>0. 0. 0. <br>0. 0. 0. <br>0. 0. 4. <br>0. 0. 4. <br>0. 0. 4. <br>0. 0. 4. <br>0. 0. 4. <br><br>ans(:,2) = ans(:,2)*1000 <br>ans = <br><br>0. 0. 0. <br>0. 0. 0. <br>0. 0. 4. <br>0. 0. 4. <br>0. 0. 4. <br>0. 0. 4. <br>0. 0. 4. <br>0. 0. 4. <br><br><br>-->ans(:,1) <br>ans = <br><br>0. <br>0. <br>0. <br>0. <br>0. <br>0. <br>0. <br><br><br>Candio <br><br></div></div><span>On Tue, Oct 21, 2014 at 8:55 AM, Candio [via Scilab / Xcos - Mailing Lists Archives] < [hidden email] > wrote: <br><br><br>Hi Samuel, <br><br>Thank you for your reply. I am using SciLab 5.5.1. <br><br>I will try to multiply the results by 1000; in the meantime, since this bug should be fixed in the version I downloaded, please let me know if there's something else I can do. <br><br>Candio <br><br><br><br><br></span><span>If you reply to this email, your message will be added to the discussion below: <a href="http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031409.html" rel="nofollow" target="_blank" link="external">http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031409.html</a> <br><br><br>To unsubscribe from interpreting showprofile results, click here . <br>NAML <br><br><br></span>View this message in context: Re: interpreting showprofile results <br><span>Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. <br><br>_______________________________________________ <br>users mailing list <br><a href="http://user/SendEmail.jtp?type=node&node=4031420&i=2" rel="nofollow" target="_blank" link="external">[hidden email]</a> <br><a href="http://lists.scilab.org/mailman/listinfo/users" rel="nofollow" target="_blank" link="external">http://lists.scilab.org/mailman/listinfo/users</a><br>_______________________________________________ <br>users mailing list <br><a href="http://user/SendEmail.jtp?type=node&node=4031420&i=3" rel="nofollow" target="_blank" link="external">[hidden email]</a> <br><a href="http://lists.scilab.org/mailman/listinfo/users" rel="nofollow" target="_blank" link="external">http://lists.scilab.org/mailman/listinfo/users</a><br><br><br></span>
<hr color="#cccccc" size="1" noshade>
<div style="FONT:12px tahoma,geneva,helvetica,arial,sans-serif;COLOR:#444"><span>
<div style="FONT-WEIGHT:bold">If you reply to this email, your message will be added to the discussion below:</div></span><a href="http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031420.html" target="_blank" rel="nofollow" link="external">http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031420.html</a> </div>
<div class="HOEnZb">
<div class="h5">
<div style="MARGIN-TOP:0.4em;FONT:11px/1.5em tahoma,geneva,helvetica,arial,sans-serif;COLOR:#666">To unsubscribe from interpreting showprofile results, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br><a style="FONT:9px serif" href="http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" target="_blank" link="external">NAML</a> </div></div></div></blockquote></div><br>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031421.html">Re: interpreting showprofile results</a><br/>
Sent from the <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">Scilab users - Mailing Lists Archives mailing list archive</a> at Nabble.com.<br/>