moose522
moose522

Reputation: 31

Empty Diagnostic/Performance tools in VS 2022

I am attempting to debug my code through Visual Studio 2022 (Version 17.2.6) and cannot for the life of me seem to figure out why my diagnostic tools are not populating with performance metrics. The Events are able to appear through the 'Events' tab but that's just about it.

Mainly want to record CPU metrics to see some bottlenecks within the code and am not sure how else to perform this is the panel is just empty. There does not seem to be a whole lot of other examples out there. Has anyone come across this situation?

example

Upvotes: 3

Views: 1159

Answers (1)

Rolan
Rolan

Reputation: 3004

I had the same issue.

Reinstalling WebView2 in apps & features resolved the issue for me.

Steps copy/pasted from the Q/A forums:

  1. Open Settings(Windows) > App > App & features > search for webview2 > find Microsoft Edge WebView2 Runtime > click Modify > click Repair. If Microsoft Edge WebView2 Runtime wasn’t installed, please go to https://go.microsoft.com/fwlink/p/?LinkId=2124703, download and run the installer.
  2. Run VS as administrator.
  3. Try to update Windows OS. Run CMD as administrator and run DISM.exe /Online /Cleanup-image /Restorehealth command, after it finishes, run sfc /scannow command.

Try that out and see if that fixes your issue.

Upvotes: 0

Related Questions