Advertisement

Finding inefficiencies

Started by January 21, 2004 01:55 PM
4 comments, last by LlamaGuy 21 years, 1 month ago
I remember reading somewhere that there's a way to record each function call of your program and find out which ones take longer than others. That way you can track down poorly written functions and rewrite them to be faster... does anyone know of some software that can do this? Or... would it just be easier to run each function 100 times in a loop and time it with GetTickCount? [edited by - LlamaGuy on January 21, 2004 2:56:03 PM]
Take a look at this code i posted a while ago.
Advertisement
Or better yet, get a profiler. Knowing how long a function takes to execute doesn''t help much unless you know how often it gets called.

Enigma
I once wrote my own profiling code, calling it before every function i wanted to monitor, this actually is a pain in the ass.
I found a program, GlowCode I think it''s called... really nifty. You just attach it to your EXE and it totals up all function calls and total time each one takes in the program. I found out that the function taking the most time in my program wasn''t even needed!
yeah glowcode is a fine one, especially if you are using VC++ (you get a tool in vc++ to run you program with glowcode loaded). get it. if you need a keygen for it, just email me! (no i dont have any! )
orbano@freemail.hu

"Knowledge is no more expensive than ignorance, and at least as satisfying." -Barrin
"Knowledge is no more expensive than ignorance, and at least as satisfying." -Barrin

This topic is closed to new replies.

Advertisement