[Scilab-users] interpreting showprofile results

Candio somephantastik at gmail.com
Wed Oct 22 16:45:06 CEST 2014


Hi Samuel,

It works beautifully now; thank you for helping me understand how to use
the profiling functions correctly.

Candio

On Wed, Oct 22, 2014 at 9:30 AM, Samuel GOUGEON [via Scilab / Xcos -
Mailing Lists Archives] <ml-node+s994242n4031420h55 at n3.nabble.com> wrote:

> Hello Candio,
> 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.
> Regards
> Samuel
>
> ----- Mail original -----
> De: "Candio" <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=4031420&i=0>>
> À: [hidden email] <http://user/SendEmail.jtp?type=node&node=4031420&i=1>
> Envoyé: Mardi 21 Octobre 2014 22:42:42
> Objet: Re: [Scilab-users] interpreting showprofile results
>
>
> 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.
>
> format(20);
> profile(myfun)
> ans =
>
> 0. 0. 0.
> 0. 0. 0.
> 0. 0. 4.
> 0. 0. 4.
> 0. 0. 4.
> 0. 0. 4.
> 0. 0. 4.
>
> ans(:,2) = ans(:,2)*1000
> ans =
>
> 0. 0. 0.
> 0. 0. 0.
> 0. 0. 4.
> 0. 0. 4.
> 0. 0. 4.
> 0. 0. 4.
> 0. 0. 4.
> 0. 0. 4.
>
>
> -->ans(:,1)
> ans =
>
> 0.
> 0.
> 0.
> 0.
> 0.
> 0.
> 0.
>
>
> Candio
>
> On Tue, Oct 21, 2014 at 8:55 AM, Candio [via Scilab / Xcos - Mailing Lists
> Archives] < [hidden email] > wrote:
>
>
> Hi Samuel,
>
> Thank you for your reply. I am using SciLab 5.5.1.
>
> 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.
>
> Candio
>
>
>
>
> If you reply to this email, your message will be added to the discussion
> below:
> http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031409.html
>
>
>
> To unsubscribe from interpreting showprofile results, click here .
> NAML
>
>
> View this message in context: Re: interpreting showprofile results
> Sent from the Scilab users - Mailing Lists Archives mailing list archive
> at Nabble.com.
>
> _______________________________________________
> users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4031420&i=2>
> http://lists.scilab.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4031420&i=3>
> http://lists.scilab.org/mailman/listinfo/users
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031420.html
>  To unsubscribe from interpreting showprofile results, click here
> <http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4031384&code=c29tZXBoYW50YXN0aWtAZ21haWwuY29tfDQwMzEzODR8LTEwNTE1ODU5MA==>
> .
> NAML
> <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>
>




--
View this message in context: http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031421.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20141022/711c4d51/attachment.htm>


More information about the users mailing list