Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

patrick.

macrumors newbie
Original poster
Sep 13, 2012
4
0
I'm using the time profiler in instruments to examine some crucial lines in my code and seem to get very inconsistent results between runs. At times it even allocates time to commented segments of code... Does anyone have any tips on the correct use of the profiler or is it just not suitable for my needs?

I'm working in C++ and using the intel compilers in the command line. To complicate things when the program is run it launches multiple proceses that communicate.
 
Generic advise

I don't have any specific help for you, but if you haven't used Instruments a lot, or haven't used it for time profiling, you may want to step back from the problem at hand. Use this as an opportunity to sharpen your skill and knowledge of one of your tools (in this case, Instruments time analysis).

Spend a few hours with some WWDC videos on instruments. Google Instruments time analysis tutorial and read/watch what comes up. Read the Apple documentation.
 
I don't have any specific help for you, but if you haven't used Instruments a lot, or haven't used it for time profiling, you may want to step back from the problem at hand. Use this as an opportunity to sharpen your skill and knowledge of one of your tools (in this case, Instruments time analysis).

Spend a few hours with some WWDC videos on instruments. Google Instruments time analysis tutorial and read/watch what comes up. Read the Apple documentation.

Thanks, i'll check out the WWDC videos.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.