Re: Rob: Another small feature request for v3.0
- Posted by Robert Craig <rds at RapidEuphoria.com> Nov 19, 2005
- 453 views
Vincent wrote: > Do you think maybe we can have 'time profiling' for Windows, Linux, > and FreeBSD Euphoria platforms for the next major release? > > Pleeeaase... > > It would be a great addition; it could work just like the DOS-32 > implementation. > A "performance nut" like myself would find this cool feature very valuable, > as he begins showing more interest in cross- > platform development. > > The majority of Euphoria programmers write software for Windows > and/or Linux and would really welcome this addition too? > > What do you think Rob?... Cool? I'd like to have that too. There was a thread on this a year ago: http://www.listfilter.com/cgi-bin/esearch.exu?thread=1&fromMonth=9&fromYear=9&toMonth=B&toYear=9&keywords=%22profile_time+in+win32+euphoria%22 A clever person could add a form of time profiling to the PD source (execute.e). Just record the time() when control enters, and the time() when it exits each routine. Then you could say how much time was spent inside each routine. The difference in time() values would often be zero, but it would average out to a nonzero value if the routine was called many times. I've done this before for C code, and it worked well. Of course this isn't as desirable as having it at the statement level in the official interpreter. > Does 'execution-count profiling' work on FreeBSD Euphoria? Yes. > In the documentation it says: DOS, Windows, and Linux. I'll fix that. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com