1. profile_time in win32 euphoria

Is there any way to get profile_time in win32 euphoria to be added,
that would be real cool.

new topic     » topic index » view message » categorize

2. Re: profile_time in win32 euphoria

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! smile

Regards,
   Juergen

new topic     » goto parent     » topic index » view message » categorize

3. Re: profile_time in win32 euphoria

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: profile_time in win32 euphoria

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!

new topic     » goto parent     » topic index » view message » categorize

5. Re: profile_time in win32 euphoria

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!

new topic     » goto parent     » topic index » view message » categorize

6. Re: profile_time in win32 euphoria

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

new topic     » goto parent     » topic index » view message » categorize

7. Re: profile_time in win32 euphoria

>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/

new topic     » goto parent     » topic index » view message » categorize

8. Re: profile_time in win32 euphoria

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

new topic     » goto parent     » topic index » view message » categorize

9. Re: profile_time in win32 euphoria

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

new topic     » goto parent     » topic index » view message » categorize

10. Re: profile_time in win32 euphoria

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

new topic     » goto parent     » topic index » view message » categorize

11. 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

new topic     » goto parent     » topic index » view message » categorize

12. Re: profile_time in win32 euphoria

> 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

new topic     » goto parent     » topic index » view message » categorize

13. Re: profile_time in win32 euphoria

>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/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu