Problems using Instruments

Discussion in 'Mac Programming' started by patrick., Dec 4, 2012.

  1. patrick. macrumors newbie

    Sep 13, 2012
    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.
  2. PatrickCocoa macrumors 6502a

    Dec 2, 2008
    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.
  3. patrick. thread starter macrumors newbie

    Sep 13, 2012
    Thanks, i'll check out the WWDC videos.

Share This Page