Enable Live Graph in Memory Usage while Debugging in Visual Studio

Somehow I have lost the live graph from my Visual Studio Diagnostic Tool. Below is my current debugging screen showing that I can not see Memory and CPU usage live graph :

enter image description here

enter image description here

Where as I am looking for this :

enter image description here

I tried exploring in following places as well online :

  1. Debug > Profiler > Performance Explorer
  2. Tools > Options > Debugging
  3. Tools > Options > IntelliTrace

Does anybody know how to enable Memory and CPU Usage live graph ?

Upvotes: 26

Views: 20121

Answers (5)

Nishan
Nishan

Reputation: 4421

If your Diagnostic Tools Window is closed, you can reopen it by Debug > Windows > Show Diagnostic Tools (Ctrl + Alt + F2)

Upvotes: 8

Pawelotti
Pawelotti

Reputation: 341

I had the same problem and found out that cursor changes on narrow gray line just below window header. Try to click and drag it down. It's hard to notice on bright theme so it may even be harder on dark one. I hope it will help you.

This narrow line hides graph:

enter image description here

Upvotes: 24

Jesper
Jesper

Reputation: 671

There is a ruler you can drag down, above the Events, Memory Usage and CPU Usage Tab, where the live graph was hidden.

Upvotes: 67

MiCoDevelopers
MiCoDevelopers

Reputation: 21

As Rahul notes, the answer in the blog does not directly fix the issue. I have the same issue and what I've observed is that if you add the existing project to a new solution file, then the real time graphs come back. This isn't quite ideal, but it does provide a work around.

Upvotes: 0

Jack Zhai
Jack Zhai

Reputation: 6436

Like this blog here:

https://blogs.msdn.microsoft.com/visualstudioalm/2014/11/13/memory-usage-tool-while-debugging-in-visual-studio-2015/

and a MSDN document:

https://msdn.microsoft.com/en-us/library/mt125494.aspx

Whenever you want to capture the state of memory, choose "Take snapshot" on the Memory Usage summary toolbar.

For CPU Usage, you need to enable it and then debug it for the next time after a debugger breakpoint was hit.

For example, if I debug an UWP app for the first time, I will got a messages "Enable CPU profiling to see a breakdown of CPU usage by function" under the CPU Usage window, I will click it, and then debug the app for the next time, I will get the CPU Usage. enter image description here

Upvotes: 0

Related Questions