Reputation: 906
Hey guys, I have a question. how to profile code more accurately and precisely? My OS is windows vista and my processor is Intel Centrino.
Right now I am compiling my c++ code using "-O0 -o" option on g++ and I am profiling using window's "QueryPerformanceCounter" and related APIs
accuracy and precision are two different things. if you are shooting something, it hits the target rather than missing is called accurate. And shooting many times, it hits same places rather than hitting many many different place is called precise.
Thank you,
Upvotes: 0
Views: 204
Reputation: 6529
Have you tried AMD's CodeAnalyst tool? It's a free download and may be helpful.
Upvotes: 1
Reputation: 40669
There's lots of discussion on this. If the reason for profiling is to discover ways to make the code faster, what helps you the most is to find them with certainty. Measuring the amount of time they cost with precision is much less important.
Here's an example in another language and OS, but the principle is the same.
Upvotes: 1