Unregistered profile_time() (was: Re: copying global stuff to one file

new topic     » topic index » view thread      » older message » newer message

>> > i want to release a cool library i made which profiles code. here's an
>> > example output:
>> 
>> Okay, are you planning to do this using the profile_time function
>> within registered Euphoria?
> 
> No.
> I have already written this profile library. It simply measures how much time
> was spent in a block of code and how many times it was run. Ofcourse I have to
> put two procedures around the block of code I want to profile, a little more work
> than using with profile, but there are some other advantages (besides i made me a
> macro in msdev which automatically puts this code in, so it's not much trouble):
> 

Does it work under Linux and al. as well?

- Under DOS32, you can trap int#70 and sort CMOS clocks ticks out.
- Under WIN32, there's a couple of performance API functions that work just 
like time(), almost as easy. It's precise up to the microsecond, may not be 
functional on 486- machines.
- Under Linux/BSD, I don't know.

I can't understand some earlier posts on this list about profile_time() not 
available in Win32, among which one from RC. I'm using my own start() and 
stop() precision stopwarch to profile_time() a possible next submission for 
the contest. And I didn't reverse engineer anything for that purpose, would 
take too much trouble, and am not using modified source of any kind.

CChris

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu