Code Profiling & Tuning

To add comments, please log in or register
Ian Smith
1595
Ian Smith  

I'd like to write a set of functions that record the timestamps spent on a specific section of code. I'd like to find out what my most CPU intensive regions are and know how long they take. That way I can write a few variations of my longest running parts or create optimized DLL files for the worst sections of the EA.

Does anyone know about this? I'm probably going to write a DLL that does it if not :/

4xCoder
72
4xCoder  

Check out this link and read the post from Slawa about half way down.

http://www.metaquotes.net/forum/2837/

It shows how to access the win32 time functions in Kernel32.dll. I don't know what the accuracy is but the clocks are there.

Ian Smith
1595
Ian Smith  

Excellent reference to one of the metaquotes programmers! thank you very much, I need to focus on the nanoseconds I will try to write something next week and release it.

To add comments, please log in or register