way to capture how much RAM the assembly is using?

  • Thread starter Thread starter Tarren
  • Start date Start date
T

Tarren

Hi:

I would like to burn-in test my app, and see if I have memory leaks
anywhere, over time.

Is there a way I can get the RAM usage that my assembly is incurring, so I
can write this to a log somewhere on an interval.

Thanks
 
Hi:

I would like to burn-in test my app, and see if I have memory leaks
anywhere, over time.

Is there a way I can get the RAM usage that my assembly is incurring, so I
can write this to a log somewhere on an interval.

Thanks

You can try ready-to-use tools for memory leakage tests if you do not
need to do it programmatically by your own:
One of them,
Memprofiler: http://memprofiler.com/

Thanks,

Onur Güzel
 
Tarren said:
I would like to burn-in test my app, and see if I have memory leaks
anywhere, over time.

Is there a way I can get the RAM usage that my assembly is incurring, so
I can write this to a log somewhere on an interval.

I don't think memory usage can be properly allocated to assemblies.

Let us say that code assembly A allocate X bytes and that an object
of a class in assembly B has a ref to it and an object of a class in
assembly C has a ref to it, but nothing in A. Where should the X bytes
be charged against ?

Arne
 
If you're using all managed resources and properly disposing of objects that
implement the IDisposable interface like you're supposed to, you shouldn't
need to worry about it. However if you're using unmanaged resources or
unsafe code you might be able to do something with the performance explorer
that's built into VS pro or higher. I know I've used it in the past to test
how much memory was being allocated on a per method basis, I just can't
think how you'd manage to do that over time and report it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top