Thanks, now explain something to me. My code runs like a dog (5 seconds or more 
to complete), yet it states it only takes 0.0364666 sec. I have no plugins or 
scripting. The details of each function are below. Is it the StrExtract ???
///////
It seems that the formula does not reference future quotes.
This is good.

2406 data bars used during this check. Total execution time: 0.0364666 sec.
Approximately 30 past and 0 future quotes are needed to calculate the formula 
properly

(This statement is automated rough estimate and does not take into account 
functions exported by plugins or scripting parts of your formula)
///////

Function name   Call Count      Total Time [ms] Time per Call [ms]
 StrExtract             123     0.563   0.005
 CategoryGetSymbols     1       0.403   0.403
 GetCategorySymbols     1       0.285   0.285
 Param                  6       0.038   0.006
 ParamList              4       0.035   0.009
 Paramcategory          1       0.033   0.033
 ParamToggle            4       0.032   0.008
 NumToStr               1       0.030   0.030
 AddColumn              1       0.023   0.023





--- In [email protected], "Prashanth" <prash454...@...> wrote:
>
> Code check & Profile (Under Tools Menu in Formula Editor) function available 
> in AB. Not sure which version it was introduced, but provies complete 
> details abotu parameters / arrays, etc used and time consumed by each.
> 
> Cheers
> 
> Prashanth
> 
> ----- Original Message ----- 
> From: "gmorlosky" <gmorlo...@...>
> To: <[email protected]>
> Sent: Friday, June 26, 2009 19:11
> Subject: [amibroker] Re: Most Used Code
> 
> 
> > How did you calculate the number of calls and time used of the code ? I 
> > would really like something to analyze my code to speed it up.
> > Thanks
> >
> > --- In [email protected], Dennis Brown <see3d@> wrote:
> >>
> >> On my system the most executed code and the one taking the most time
> >> is NumToStr().  29 calls and 100ms of time used.
> >> I think it is from converting an index to a string to append to a
> >> static variable name for faking string arrays.
> >> I already converted most of the static numeric arrays to the new
> >> static array type.
> >> Strange what pops up.  I would have never guessed that this would be
> >> the one taking so much time.
> >> Perhaps that is an argument for built-in string arrays.
> >>
> >> BR,
> >> Dennis
> >>
> >> On Jun 25, 2009, at 6:41 PM, brian_z111 wrote:
> >>
> >> > I was speculating on which line of code is the most frequently used
> >> > AFL.
> >> >
> >> > I would like a zloty for every time I have typed:
> >> >
> >> > Plot(variable,"variable",1,1);
> >> >
> >> >
> >> >
> >>
> >
> >
> >
> >
> > ------------------------------------
> >
> > **** IMPORTANT PLEASE READ ****
> > This group is for the discussion between users only.
> > This is *NOT* technical support channel.
> >
> > TO GET TECHNICAL SUPPORT send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> > http://www.amibroker.com/feedback/
> > (submissions sent via other channels won't be considered)
> >
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> >
> > Yahoo! Groups Links
> >
> >
> >
>


Reply via email to