26

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 ?

  • I have the same problem, live graph was working fine but is now gone. Did you find a way to bring it back? – jpl Aug 09 '16 at 13:49
  • 1
    Nope, I have changed some settings which I am not willing to undo in my project which caused this. So I ended up using diagnostic session starting them manually using profiling tools. – Рахул Маквана Aug 09 '16 at 14:22
  • 2
    For future visitors: see the [answer](http://stackoverflow.com/a/39568058/429949) by Jesper. Basically, the tab pane gets scrolled all the way to the top and you need to grab the gray bar just below the header and drag it down. – Richard Marskell - Drackir Nov 16 '16 at 19:08

5 Answers5

67

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

Jesper
  • 671
  • 4
  • 4
24

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

DavidG
  • 24,279
  • 14
  • 89
  • 82
Pawelotti
  • 341
  • 2
  • 5
  • The question was: Does anybody know how to enable Memory and CPU Usage live graph ? Looking at screenshot added in one of responses his graph was dragged up. So it do answer the question. – Pawelotti May 19 '17 at 12:51
7

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

Nishan
  • 3,644
  • 1
  • 32
  • 41
0

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

Jack Zhai
  • 6,230
  • 1
  • 12
  • 20
  • I see your point sir,I did try that before posting this question but it wasn't much of a help. What I want is, regardless of any breakpoint hit, it used to show me Live Graph of memory, CPU usage. All of sudden due to "some" change it has stopped displaying it. – Рахул Маквана Aug 01 '16 at 13:42
  • 1
    If it worked well before, I suggest you reset VS settings. – Jack Zhai Aug 02 '16 at 02:36
  • No help even after re-installing VS. Guess it has something to do with my Project Configurations – Рахул Маквана Aug 03 '16 at 13:32
  • How about creating a new simple app? For example, just create a blank UWP app, how about the result if you debug it? – Jack Zhai Aug 04 '16 at 05:15
  • I do have another project I am working on, it works just fine on it. – Рахул Маквана Aug 04 '16 at 13:25
  • If so, we would think about the project itself. Whether it is the same project type? Create a blank solution, and then add all project file to this new blank solution, clean and build solution, test it again. Please also compare the .xxproj file and find the differences. – Jack Zhai Aug 05 '16 at 01:53
0

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.

  • I agree that new solution file will do the job because few configurations(which I don't know what was the trigger) I have done with my existing solution will no more in effect. – Рахул Маквана Sep 14 '16 at 13:28