1 Reply Latest reply on Dec 2, 2009 2:27 PM by leiy

    debug vs release mode

    afabri

      Hello,

      I get started with the CodeAnalyst, and reading the chapter "Preparing an Application for Profiling" I am already confused.    I would like to  analyze code in release mode, because otherwise no inlining of C++ happens at all, so my idea is to compile in release mode, but add /Zi and /DEBUG. 

      Is that the right approach?

       

      Best regards,

       

      andreas

      Preparing an Application for Profiling

        • debug vs release mode
          leiy

          That's right approach.

          The /Zi compilation flag will generate symbol and line info.

          The "Yes(/Debug)" will put the symbol and line info into .pdb file. 

          You still are able to use optimization options, such as /O2 etc and your code is still compiled in release mode (with NDEBUG preprocessor definitions).