Reputation: 171
Working with the new VS2022 just installed Monday, first day of release. Saw a video of the Profiler and thought I would try one. (Alt-F2). When you start the Diagnostic Tools gets suspended. That I can understand. Now I cannot stop the profiler. Exiting, rebooting the computer I still do not get the Diagnostic Tools back.
When I try and start another tool I get: "The collection session cannot be launched because another on is currently active." How do I stop the current one???
You can learn more about the Profiller here: https://learn.microsoft.com/en-us/visualstudio/profiling/profiling-feature-tour?view=vs-2022
Shoud note I am mostly working on WPF in C#.
Upvotes: 6
Views: 2786
Reputation: 113
From here,
The Performance Profiler will not work while a debugging session is active with the Diagnostics Tools window in operation.
To disable the Dignostics window
Menu => Tools => Options => Debugging => General => Uncheck "Enable Diagnostic Tools while debugging"
After that the Profiling worked fine.
Upvotes: 1
Reputation: 171
Since I never got response to it, I used the sledgehammer approach. I uninstalled VS2022 and then reinstalled it. It now works fine. I have been afraid to try another Diagnostic Tool.
Upvotes: 3