Visual Studio Profiler setup


How to set up the symbols to show correct function names for system functions.

c:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe createpdb c:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\6715dc4d04e35f16d482900c355325e9\ c:\Symbols

On the VS menu:

Analyse > Profiler > Attach/Detach

Check both checkboxes

Select w3p

If w3p is not available, load the website first, then use the Refresh button.

Then run your process.

Click Call Tree

Then right click and choose "Expand Hot Path"

This will show the slowest functions in your code.

In my case I found it was String.Concat. I changed this string to a StringList and it sped it up by 10,000 times!


Leave a Comment