Just found this: http://silverspaceship.com/src/iprof/
Maybe someone find this usefull.

I read that it isn't ported to other plattforms yet,
but here a quote from the readme:

#######################
PLATFORM SUPPORT

IProf requires a small amount--less than fifty 
lines--ofplatform-specific code.

Win32 under MSVC is automatically supported with no further effort on 
your part, using the files prof_win32.c and prof_win32.h

To use other platforms, just create equivalent files for your platform. 
The C file contains a routine for getting an accurate floating point 
time reading; the H file contains the definition of a 64-bit integer 
type and a fast routine for reading a timestamp of that size. If 64-bit 
math isn't available on your platform, or if your timestamp is only 
32-bit, you can replace the 64-bit type with a 32-bit type, as long as 
that item won't overflow in the course of running the application. (A 
31-bit millisecond timer is good for 24 days, but is very imprecise for 
this application.) If reading the timestamp is slow, you will want to 
minimize how often the zone entry and exit points are called.
#######################

Maybe it would be usefull.

- Regards, Kamaze

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to