SBako
SBako

Reputation: 13

Visual Studio Profiler only shows msvcr110.dll

I am running the CPU sampling profiler in Visual Studio 2012, but at the end the report just says that 99.83% of samples went to msvcr110.dll. In the past, I would see a clear breakdown of which of my program functions were called most frequently. Could somebody please help me with this issue?

Thanks!

Upvotes: 0

Views: 969

Answers (2)

Andriy Bun
Andriy Bun

Reputation: 11

I've had an issue when the VS 2012 profiler wasn't able to pick up symbols. At the same time the debugger worked well. It turned out to be Update 5 missing.

Upvotes: 1

egur
egur

Reputation: 7960

Sounds like you didn't build with debug information (Linker options->Debugging).

Also check the object files contain debug information (C/C++ options->General->Debug Information Format).
/Zi option creates a pdb file.
/Z7 integrates the debug info into the binary (usually less preferred.)

When debug info is missing, profilers will show you some C runtime function that takes a lot of runtime.

Upvotes: 1

Related Questions