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

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

Christian Cuvier wrote:
> 
> >> > 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):</font></i>
> > 
> 
> Does it work under Linux and al. as well?

It is generic. It uses time(). What's al.?

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

time() is precise enough for me.


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

I don't know about that, haven't tried profile_time for a long time, because it
is not available in unregistered version.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu