Temple of The Roguelike Forums

Development => Programming => Topic started by: Krice on July 07, 2010, 10:32:10 AM

Title: Code profiler/analysis tools for Windows
Post by: Krice on July 07, 2010, 10:32:10 AM
I guess there are less free programs for Windows than commercial. I just found Cppcheck and I think it's quite nice. It's checking some stuff that the compiler might not warn about, like out-of-scope variables, member variable initialization and also tells which functions could be const.

A profiler could be nice, but is there a free one for Windows? Well, I could even get a commercial if it's not too expensive..
Title: Re: Code profiler/analysis tools for Windows
Post by: dephbokks on July 08, 2010, 06:41:43 AM
These are the ones I know about:

http://developer.amd.com/cpu/CodeAnalyst/Pages/default.aspx (http://developer.amd.com/cpu/CodeAnalyst/Pages/default.aspx)
http://valgrind.org/ (http://valgrind.org/)
http://www.codersnotes.com/sleepy (http://www.codersnotes.com/sleepy)
http://developer.apple.com/tools/shark_optimize.html (http://developer.apple.com/tools/shark_optimize.html) (if on mac)

Just because I know about 'em doesn't mean I use 'em so I guess what I am saying is let us know which ones were useful!

-good luck
Title: Re: Code profiler/analysis tools for Windows
Post by: Krice on July 08, 2010, 07:10:27 AM
- AMD Analyst -> for AMD only, sucks
- Valgrind -> for Linux/Mac only, sucks
- Shark -> for Mac only, sucks

Verysleepy was ok, but it doesn't seem to understand debug information of gcc generated .exe so it's kind of useless there (showing only memory address of function). I think it could work with Visual C++ shit and that information could be used in gcc optimization also to spot possible slow routines.