1 Reply Latest reply on Jun 21, 2012 2:48 PM by fswehosky

    debug or release mode?



      In which the code should be compiled, so that we can use the code analyst? debug mode or release mode?

      please tell me if there is any flag that we have to add or set.


        • Re: debug or release mode?

          Hello foofooli,


          Your code can be compiled in either mode.  It makes more sense to profile the release version, since that has the compiler optimizations and should execute with the performance characteristics that you care about.    Most compilers allow you to generate debug symbols for release builds.  When the debug symbols are generated and available, then CodeAnalyst will use them to provide source line annotations of the profile information.


          Using Microsoft Visual Studio, the usual flag for the compilation is /Zi and linking uses /DEBUG.  For GCC, the usual flag is -g.