Nothing shows up in the profiler

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
alain_desilets
Posts: 2
Joined: Wed Aug 14, 2013 1:22 pm

Nothing shows up in the profiler

Post by alain_desilets » Wed Aug 14, 2013 1:48 pm

I just downloaded .NET Memory Profiler, and am having a hell of a time figuring out how to use it.

I have profiled an application, but once the app has finished running, all the screens for all the tabs seem to contain no data at all. Below are some screenshots that capture what I do. Can someone point out what I am doing wrong? Thx.

First, I run the app:

http://www.evernote.com/shard/s235/sh/f ... 8ef1a8c2f0

I use High Profile level:

http://www.evernote.com/shard/s235/sh/d ... 93309523e5

I collect instance data:

http://www.evernote.com/shard/s235/sh/b ... 679bfcbce2

I then click the Start button, the app runs, and when it's done, I'm asked if I want to save the session.

http://www.evernote.com/shard/s235/sh/6 ... debd5d94d0

I answer yes and save the session to disk.

Now I want to see the profiling data that was collected. I click on Overview, and all I see is a mostly blank screen:

http://www.evernote.com/shard/s235/sh/5 ... d1a5bcd773

And no matter what tab I click on, I don't see any data anywhere.

One thing that puzzles me is that the "Show snapshot" picklist says: "Empty", and that is the only available value in the picklist.

What am I doing wrong?

Thx.

Andreas Suurkuusk
Posts: 1005
Joined: Wed Mar 02, 2005 7:53 pm

Re: Nothing shows up in the profiler

Post by Andreas Suurkuusk » Thu Aug 15, 2013 3:24 pm

In order for the profiler to present information about the memory usage of the application you will need to a collect a heap snapshot (see screenshot below). If no heap snapshot is collected, then only real-time memory information will be available (presented under the Real-time page).
collectsnapshot.png
Collect snapshot
To get information about the maximum memory usage of your application, you can enable peak snapshot collection (see screenshot below). When the application exits, a snapshot will automatically be collected with information about the peak memory usage of the application.
collectpeak.png
Collect peak
Best regards,

Andreas Suurkuusk
SciTech Software AB

alain_desilets
Posts: 2
Joined: Wed Aug 14, 2013 1:22 pm

Re: Nothing shows up in the profiler

Post by alain_desilets » Thu Aug 22, 2013 10:28 am

Dear Andreas,

Sorry for not replying earlier. I never got email notification, eventhough I am "subscribed" to this topic.

Anyways, I don't seem to be able to do what you propose. When I start .NET Memory Profiler, the camera icon (Collect Heap Snapshot) is greyed out, so I can't click on it.

http://www.evernote.com/shard/s235/sh/6 ... f78ed03b66

If I click on "Profile application" and fill in the required info, I never see that icon ever again, so I can't really click on it at that point either.

How can I configure this thing to actually collect the heap information?

Thx.

Alain Desilets
Alpaca Technologies

Andreas Suurkuusk
Posts: 1005
Joined: Wed Mar 02, 2005 7:53 pm

Re: Nothing shows up in the profiler

Post by Andreas Suurkuusk » Fri Aug 23, 2013 8:24 am

I assume that you program runs to quickly for you, so you are not able to collect a heap snapshot before it exits. Is that correct? Do you expect the program to terminate quickly?

If you want to collect memory information from a short running program, you must enable peak snapshot collection, before starting the profiling. You can do that by clicking the collect peak snapshot button, before selecting "Profile application".
collectpeak.png
Collect peak
Or you can use the "Investigate program peak memory usage" guide (see screenshot).
programpeak.png
Program peak memory guide
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest