28

VS2015 includes some new tools for diagnosing WPF applications performance. My solution contains more than one project (e.g. View and ViewModel projects). When I start my View project in diagnose mode and measure CPU usage, a considerable portion of it is being utilized by the VM project, which is shown as "External Code" in the results. How can I tell diagnostic tools to include all projects of my solution when diagnosing.

Edit

(Note for the people who skip comments)

I know about the "External Code" checkbox available in "Filter View" dropdown. The problem with that option is that if I turn it on, it starts showing lower-level Framework functions in the call stack too (things like nt.dll, presentationcore.dll etc), which means that a function of my VM may get buried 20 levels deep into the call hierarchy. I need a way to ask it to filter any Framework-level functions and just show code from the current solution.

dotNET
  • 33,414
  • 24
  • 162
  • 251

1 Answers1

58

When you have the diagnostic view up, look for a dropdown that says "Filter View". It's in the area below the graph but above the listview. Click the dropdown and check the "Show External Code" checkbox.

(Also, who downvoted this question without leaving a comment? That's entirely unhelpful. If you thought the question was trivial, why not say that while answering the question?)

AndreN
  • 611
  • 4
  • 5
  • 7
    Thanks for the input. I know about the "External Code" checkbox available in "Filter View" dropdown. The problem with that option is that if I turn it on, it starts showing lower-level Framework functions in the call stack too (things like nt.dll, presentationcore.dll etc), which means that a function of my VM may get buried 20 levels deep into the call hierarchy. I need a way to ask it to filter any Framework-level functions and just show code from the current solution. – dotNET Nov 16 '15 at 07:08
  • Same issue with VS2019... – sigod Jan 27 '23 at 16:23