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?
Preparing an Application for Profiling
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).