How do I view call stacks of allocations

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.

Moderator: SciTech Software

How do I view call stacks of allocations

Postby dsemc » Wed Sep 03, 2014 7:53 pm

I cannot figure out how to view call stacks of allocations in the .NET Memory Profiler. I'm currently using 4.6 but I was never able to figure this out with earlier editions, around a year ago when we first purchased this tool.

While in a profiling session, after taking a couple memory snapshots, I see a menu item under View called "Call stack functions" but it is grayed out and disabled. I saw the documentation topic called "Call stacks view" but it doesn't explain how to actually get there. Viewing call stacks is the most important feature to me, to be able to figure out the code path which is actually causing the leak. I was disappointed with the tool that it is so hard to figure out.

I also am using a different .NET profiler product which shows the call stacks of allocations (sortable by # and total amount of allocations) and I was able to find it without even looking at the documentation, so I know this can be done. Unfortunately that other tool doesn't handle attaching to a service process which is what I need now, which the .NET Memory Profiler seems to handle well.

Thanks
dsemc
 
Posts: 1
Joined: Wed Sep 03, 2014 7:38 pm

Re: How do I view call stacks of allocations

Postby Andreas Suurkuusk » Thu Sep 04, 2014 10:34 am

.NET Memory Profiler is not able to collect allocation call stacks when attaching to a process. This is a limitation in the profiling API provided by the .NET runtime.

To get allocation call stack information you need to start the profiled process from the profiler, e.g. by using the Profile application command.
Best regards,

Andreas Suurkuusk
SciTech Software AB
Andreas Suurkuusk
 
Posts: 957
Joined: Wed Mar 02, 2005 7:53 pm
Location: Sweden


Return to Using .NET Memory Profiler

Who is online

Users browsing this forum: Bing [Bot] and 6 guests

SciTech Software logo

© Copyright 2001-2016. SciTech Software AB
All rights reserved.


SciTech Software AB
Kartvägen 21
SE-175 46 Järfälla
Sweden


E-mail: mail@scitech.se

Telephone: +46-706868081

cron