1. profile_time in win32

Could you guys add profile_time to the win32 release? I uploaded it a long time ago to the user contributions.

new topic     » topic index » view message » categorize

2. Re: profile_time in win32

I'm not sure what you are referring to, and I don't know if this is relevant, but in Euphoria 4.0, sleep() can now accept non-integers. It doesn't really say it, but I believe it handles milliseconds in windows and even greater precision in linux.

Also, the task scheduler has been improved so that active waiting is no longer used between scheduled tasks when there is less than 1 second until the next scheduled task.

A related procedure has been added, too: task_delay().

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

3. Re: profile_time in win32

Not what I meant, currently "with profile_time" is only allowed in DOS32.
But I made a source change to allow it in windows as well.
http://www.rapideuphoria.com/winprofilesource.zip
Could you put the relevant changes into the new version of euphoria please?

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

4. Re: profile_time in win32

codepilot said...

Not what I meant, currently "with profile_time" is only allowed in DOS32.
But I made a source change to allow it in windows as well.
http://www.rapideuphoria.com/winprofilesource.zip
Could you put the relevant changes into the new version of euphoria please?

Is this source folder to be diff'ed against official 3.1.1 so as to see what the changs are? Or against an old svn 4.0 revision?

CChris

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

5. Re: profile_time in win32

codepilot said...

Not what I meant, currently "with profile_time" is only allowed in DOS32.
But I made a source change to allow it in windows as well.
http://www.rapideuphoria.com/winprofilesource.zip

There are 92 files in that ZIP. Where exactly is your changes? Having us trawl through each of these files, looking for your patch code is a bit much to ask, no?

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

6. Re: profile_time in win32

Oh, it is patched against the official source in 3.1, not 3.1.1 I believe.

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

7. Re: profile_time in win32

codepilot said...

Oh, it is patched against the official source in 3.1, not 3.1.1 I believe.

I've made a diff file, available here: http://linuxbuddhist.net:8080/winprof.diff

I'm taking a closer look at it and seeing how to apply it to the current eu4.0 source. Let me know if I've omitted something from the patch.

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

8. Re: profile_time in win32

jimcbrown said...
codepilot said...

Oh, it is patched against the official source in 3.1, not 3.1.1 I believe.

I've made a diff file, available here: http://linuxbuddhist.net:8080/winprof.diff

I'm taking a closer look at it and seeing how to apply it to the current eu4.0 source. Let me know if I've omitted something from the patch.

You forgot the [[]]. smile

[[http://linuxbuddhist.net:8080/winprof.diff]] 

http://linuxbuddhist.net:8080/winprof.diff

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

9. Re: profile_time in win32

That looks like all the changes I made. The WinTimer might need to tweaked a bit, because the "Sleep" function will cause slight variations in the timing profile, and using floating point math will slow it down especially since the thread is created with THREAD_PRIORITY_TIME_CRITICAL. Also there is currently no code to kill the timing thread which is a must.

So Sleep longer maybe 10ms or more, and kill it and start it with profile() instead.

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

10. Re: profile_time in win32

codepilot said...

That looks like all the changes I made. The WinTimer might need to tweaked a bit, because the "Sleep" function will cause slight variations in the timing profile, and using floating point math will slow it down especially since the thread is created with THREAD_PRIORITY_TIME_CRITICAL. Also there is currently no code to kill the timing thread which is a must.

So Sleep longer maybe 10ms or more, and kill it and start it with profile() instead.

Ok, a patch of the exact same code against 4.0 is available here: http://linuxbuddhist.net:8080/winprof40.diff

I may work on adding in the changes you described above in a little bit.

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

11. Re: profile_time in win32

That looks good does it work? It should work without the changes I described.

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

12. Re: profile_time in win32

codepilot said...

Oh, it is patched against the official source in 3.1, not 3.1.1 I believe.

Can you upload a zip file with diffreence files, like produced by diff.exe or WinMerge, and a note that base iss official 3.1? This will make your changes far easier to assess and possibly incorporate.

CChris

PS: I try once in a while using the creole toolbar, but it still does nothing. IE6 with JS enabled. Same with Firefox.

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

13. Re: profile_time in win32

CChris said...
codepilot said...

Oh, it is patched against the official source in 3.1, not 3.1.1 I believe.

Can you upload a zip file with diffreence files, like produced by diff.exe or WinMerge, and a note that base iss official 3.1? This will make your changes far easier to assess and possibly incorporate.

CChris

PS: I try once in a while using the creole toolbar, but it still does nothing. IE6 with JS enabled. Same with Firefox.

CChris, I've already made a patch against 4.0 svn head. It should work fine, but I did not test it (which is why I did not commit it).

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

14. Re: profile_time in win32

Never mind, didn't see Jim hadtaken care of it.

CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu