Reputation: 1618
I'm trying to use profiler from Visual Studio 2015 Community for CPU usage, and all I get is just my exe and [External code], nothing else:
There is a generated pdb file, and I tried to clean and rebuild my project, disabled just my code; could someone help me ? Thanks.
Upvotes: 26
Views: 19562
Reputation: 33
Sometimes, it is just the lack of relevant information that may cause such error.
In some of my cases, just try cleaning the solution/builds and then start again and the problem would be fixed.
Upvotes: 0
Reputation: 3037
I found this thread, and then found a solution... At least in the VS2015 Update 3, the Diagnostic Tools -> CPU Usage -> Filter drop-down has a "Show External Code" checkbox, which when checked expands all [External Code] placeholders.
Upvotes: 1
Reputation: 68818
In my case the problem was resolved by checking "Enable .net Framework source stepping" option in Tools > Options > Debugging > General. This would also disable "Enable Just My Code".
On a side note, it appears that VS2015 profiler is not particularly effective in finding out finalizer issues if you have lot of disposible objects that you never explicitly dispose (causing finalizer thread to over work). I used JetBrain dotTrace which did pointed out this issue.
Upvotes: 2
Reputation: 21925
The accepted answer didn't work for me - in my case the problem seems to be that I didn't have Debug Info generated in my Program Database File.
The fix I needed was to change Configuration Properties → Linker → Debugging → Generate Debug Info
to Yes
for my Release configuration, and then recompile all.
Upvotes: 13
Reputation: 1618
Try this: Debug -> Start Diagnostic Tools Without Debugger
and from there select Performance Wizard
rather than CPU Usage
, and only from there select CPU or other option you need, this solved the problem in my case.
Upvotes: 24