1. profile_time in win32 euphoria
- Posted by codepilot Gmail Account <codepilot at gmail.com> Oct 20, 2004
- 671 views
Is there any way to get profile_time in win32 euphoria to be added, that would be real cool.
2. Re: profile_time in win32 euphoria
- Posted by "Juergen Luethje" <j.lue at gmx.de> Oct 20, 2004
- 595 views
codepilot Gmail Account wrote: > Is there any way to get profile_time in win32 euphoria to be added, > that would be real cool. Yesterday, I thought exactly the same! Regards, Juergen
3. Re: profile_time in win32 euphoria
- Posted by Robert Craig <rds at RapidEuphoria.com> Oct 20, 2004
- 612 views
codepilot Gmail Account wrote: > Is there any way to get profile_time in win32 euphoria to be added, > that would be real cool. I'd like to have that too. I just need someone to show me how to get a timer interrupt generated, say, 100 times per second, and then the rest of it should be just like what I do for DOS. I know it can be done. I just never persued it long and hard enough. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
4. Re: profile_time in win32 euphoria
- Posted by Alexander Toresson <toressonodakra at swipnet.se> Oct 20, 2004
- 632 views
Robert Craig wrote: > > codepilot Gmail Account wrote: > > Is there any way to get profile_time in win32 euphoria to be added, > > that would be real cool. > > I'd like to have that too. > I just need someone to show me how to get > a timer interrupt generated, say, 100 times per second, > and then the rest of it should be just like > what I do for DOS. I know it can be done. I just never > persued it long and hard enough. > Wouldn't a win32 timer be appropriate? Regards, Alexander Toresson Shhh! Be vewy quiet! I'm hunting wuntime ewwows!
5. Re: profile_time in win32 euphoria
- Posted by Alexander Toresson <toressonodakra at swipnet.se> Oct 20, 2004
- 639 views
Robert Craig wrote: > > codepilot Gmail Account wrote: > > Is there any way to get profile_time in win32 euphoria to be added, > > that would be real cool. > > I'd like to have that too. > I just need someone to show me how to get > a timer interrupt generated, say, 100 times per second, > and then the rest of it should be just like > what I do for DOS. I know it can be done. I just never > persued it long and hard enough. > Or a thread running in the background? Regards, Alexander Toresson Shhh! Be vewy quiet! I'm hunting wuntime ewwows!
6. Re: profile_time in win32 euphoria
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 20, 2004
- 582 views
- Last edited Oct 21, 2004
Robert Craig wrote: > > codepilot Gmail Account wrote: > > Is there any way to get profile_time in win32 euphoria to be added, > > that would be real cool. > > I'd like to have that too. > I just need someone to show me how to get > a timer interrupt generated, say, 100 times per second, > and then the rest of it should be just like > what I do for DOS. I know it can be done. I just never > persued it long and hard enough. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/perfmonitoring.asp -- Derek Parnell Melbourne, Australia
7. Re: profile_time in win32 euphoria
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Oct 21, 2004
- 576 views
>From: Robert Craig <guest at RapidEuphoria.com> >Reply-To: EUforum at topica.com >To: EUforum at topica.com >Subject: Re: profile_time in win32 euphoria >Date: Wed, 20 Oct 2004 09:55:47 -0700 > >posted by: Robert Craig <rds at RapidEuphoria.com> > >codepilot Gmail Account wrote: > > Is there any way to get profile_time in win32 euphoria to be added, > > that would be real cool. > >I'd like to have that too. >I just need someone to show me how to get >a timer interrupt generated, say, 100 times per second, >and then the rest of it should be just like >what I do for DOS. I know it can be done. I just never >persued it long and hard enough. > Obviously, not a lot of searching.... I found it in a couple minutes (though I /did/ know what to look for already.) Your best bet would be the SetTimer function ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/settimer.asp ). The multimedia functions would be unstable for this kind of application (they're very restricted), and the high-performance timers would just be a waste. The performance monitoring API's Derek mentioned are NT/2K/XP only, I believe, but too complex anyway, really. >Regards, > Rob Craig > Rapid Deployment Software > http://www.RapidEuphoria.com > ~[ WingZone ]~ http://wingzone.tripod.com/
8. Re: profile_time in win32 euphoria
- Posted by Robert Craig <rds at RapidEuphoria.com> Oct 21, 2004
- 562 views
Elliott S. de Andrade wrote: > Obviously, not a lot of searching.... I found it in a couple minutes > (though I /did/ know what to look for already.) Your best bet would be the > SetTimer function ( > <a > href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/settimer.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/settimer.asp</a> Thanks. I'm not sure SetTimer will do what I want, but I'll look into it. I get the impression it's more of an application-level timer. In DOS, I have a precise machine-level interrupt that I handle at a low level, even to the point of looking at CPU registers. SetTimer seems to just place a stream of messages into a queue, and I'm not sure if it even does that preemptively or not. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
9. Re: profile_time in win32 euphoria
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 21, 2004
- 604 views
Robert Craig wrote: > > Elliott S. de Andrade wrote: > > Obviously, not a lot of searching.... I found it in a couple minutes > > (though I /did/ know what to look for already.) Your best bet would be the > > SetTimer function ( > > <a > > href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/settimer.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/settimer.asp</a> > > Thanks. > I'm not sure SetTimer will do what I want, but I'll look into it. > I get the impression it's more of an application-level timer. > In DOS, I have a precise machine-level interrupt that I handle > at a low level, even to the point of looking at CPU registers. > SetTimer seems to just place a stream of messages into a queue, > and I'm not sure if it even does that preemptively or not. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/abouttimers.asp Especially the secion on high resolution timers. -- Derek Parnell Melbourne, Australia
10. Re: profile_time in win32 euphoria
- Posted by Robert Craig <rds at RapidEuphoria.com> Oct 21, 2004
- 599 views
Derek Parnell wrote: > <a > href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/abouttimers.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/abouttimers.asp</a> > > Especially the secion on high resolution timers. Thanks. Using a high resolution timer would be a fairly easy approach to time profiling. I could measure the total time spent in each subroutine. Measuring individual statements might be too fine-grained. Perhaps this would be easier than trying to re-use my DOS profiling code. The DOS code works by sampling the program's code address many times per second. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
11. Re: profile_time in win32 euphoria
- Posted by Patrick Barnes <mrtrick at gmail.com> Oct 21, 2004
- 590 views
On Wed, 20 Oct 2004 23:14:35 -0700, Robert Craig <guest at rapideuphoria.com> wrote: > approach to time profiling. I could measure the total > time spent in each subroutine. Measuring individual statements > might be too fine-grained. Well, I agree that to-the-statement profiling might be too fine-grained, but it would certainly be useful to see time spent in loop constructs (for, while) as well as the time for the entire subroutine. -- MrTrick
12. Re: profile_time in win32 euphoria
- Posted by "Christian Cuvier" <Christian.CUVIER at agriculture.gouv.fr> Oct 21, 2004
- 606 views
> Date: Thu, 21 Oct 2004 16:18:53 +1000 > From: Patrick Barnes <mrtrick at gmail.com> > Subject: Re: profile_time in win32 euphoria > > > On Wed, 20 Oct 2004 23:14:35 -0700, Robert Craig > <guest at rapideuphoria.com> wrote: > >>> approach to time profiling. I could measure the total >>> time spent in each subroutine. Measuring individual statements >>> might be too fine-grained. > > > Well, I agree that to-the-statement profiling might be too > fine-grained, but it would certainly be useful to see time spent in > loop constructs (for, while) as well as the time for the entire > subroutine. > > -- MrTrick Plus the time the return statement takes when a lot of local vars are being freed. So, even if strict to-the-statement timing is overkill, blocks (as you said) or specific statements may deserve it. CChris
13. Re: profile_time in win32 euphoria
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Oct 21, 2004
- 603 views
- Last edited Oct 22, 2004
>From: Robert Craig <guest at RapidEuphoria.com> >Reply-To: EUforum at topica.com >To: EUforum at topica.com >Subject: Re: profile_time in win32 euphoria >Date: Wed, 20 Oct 2004 21:39:43 -0700 > >posted by: Robert Craig <rds at RapidEuphoria.com> > >Elliott S. de Andrade wrote: > > Obviously, not a lot of searching.... I found it in a couple minutes > > (though I /did/ know what to look for already.) Your best bet would be >the > > SetTimer function ( > > <a >>href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/settimer.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/settimer.asp</a> > >Thanks. >I'm not sure SetTimer will do what I want, but I'll look into it. >I get the impression it's more of an application-level timer. >In DOS, I have a precise machine-level interrupt that I handle >at a low level, even to the point of looking at CPU registers. >SetTimer seems to just place a stream of messages into a queue, >and I'm not sure if it even does that preemptively or not. > SetTimer has an option to call a function instead of posting messages to a window. However, since you might be changing the code entirely, it would be best to use the high-resolution timers. They are not always installed though, so you may have to fall back to using SetTimer. >Regards, > Rob Craig > Rapid Deployment Software > http://www.RapidEuphoria.com > ~[ WingZone ]~ http://wingzone.tripod.com/