1. profile_time in win32
- Posted by codepilot Aug 30, 2008
- 996 views
Could you guys add profile_time to the win32 release? I uploaded it a long time ago to the user contributions.
2. Re: profile_time in win32
- Posted by ryanj Aug 30, 2008
- 996 views
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().
3. Re: profile_time in win32
- Posted by codepilot Aug 30, 2008
- 1036 views
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?
4. Re: profile_time in win32
- Posted by CChris Aug 30, 2008
- 1029 views
- Last edited Aug 31, 2008
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
5. Re: profile_time in win32
- Posted by DerekParnell (admin) Aug 30, 2008
- 1126 views
- Last edited Aug 31, 2008
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?
6. Re: profile_time in win32
- Posted by codepilot Aug 30, 2008
- 996 views
- Last edited Aug 31, 2008
Oh, it is patched against the official source in 3.1, not 3.1.1 I believe.
7. Re: profile_time in win32
- Posted by jimcbrown (admin) Aug 30, 2008
- 1004 views
- Last edited Aug 31, 2008
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.
8. Re: profile_time in win32
- Posted by ryanj Aug 30, 2008
- 1030 views
- Last edited Aug 31, 2008
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 [[]].
[[http://linuxbuddhist.net:8080/winprof.diff]]
9. Re: profile_time in win32
- Posted by codepilot Aug 30, 2008
- 1032 views
- Last edited Aug 31, 2008
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.
10. Re: profile_time in win32
- Posted by jimcbrown (admin) Aug 30, 2008
- 1044 views
- Last edited Aug 31, 2008
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.
11. Re: profile_time in win32
- Posted by codepilot Aug 30, 2008
- 990 views
- Last edited Aug 31, 2008
That looks good does it work? It should work without the changes I described.
12. Re: profile_time in win32
- Posted by CChris Aug 31, 2008
- 991 views
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.
13. Re: profile_time in win32
- Posted by jimcbrown (admin) Aug 31, 2008
- 978 views
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).
14. Re: profile_time in win32
- Posted by CChris Aug 31, 2008
- 969 views
Never mind, didn't see Jim hadtaken care of it.
CChris