Unmanaged resources command line option?

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
Henrik
Posts: 2
Joined: Wed Feb 13, 2008 10:11 am

Unmanaged resources command line option?

Post by Henrik » Wed Feb 13, 2008 10:18 am

Hi!

We're currently running v3.0.97.0 (Professional), monitoring unmanaged resources since we have leaks in our app. The feature is great, but how do we activate it from the command line? We have started writing unit tests specifically aimed at tracking down memory leaks, and need to know how to turn this feature on. We read the documentation, and checked all availble command line options, but didn't find any that seems to do this.

/Henrik

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

Post by Andreas Suurkuusk » Wed Feb 13, 2008 8:35 pm

You are correct. There is no way of enabling/disabling the resource tracker through command line parameters. This should of course be possible, and we will add additional parameters in the next maintenance release.

However, the recommended way of specifying session settings is by using a profiler project. All you have to do is to create a profiler project, define the session settings and save it. You can then use the command line parameter "/project" to specify the profiler project you want to use. If you specify additional parameters on the command line, they will override the parameters in the project. So you can for instance use the same project to profile different applications, by providing a "/program" parameter.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Henrik
Posts: 2
Joined: Wed Feb 13, 2008 10:11 am

Post by Henrik » Thu Feb 14, 2008 6:04 am

Thanks for your help, that works just fine. We'll use a project file until the next release comes out then.

/Henrik

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 9 guests