471,330 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

way to capture how much RAM the assembly is using?

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

Jun 27 '08 #1
3 1166
On May 20, 4:54 pm, "Tarren" <noemailple...@thanks.comwrote:
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
Jun 27 '08 #2
Tarren wrote:
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
Jun 27 '08 #3
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.

"Tarren" <no***********@thanks.comwrote in message
news:eX*************@TK2MSFTNGP02.phx.gbl...
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
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Juan Crespo | last post: by
4 posts views Thread by Bill Manring | last post: by
1 post views Thread by Jody Gelowitz | last post: by
4 posts views Thread by jxiang | last post: by
1 post views Thread by patrickprog | last post: by
reply views Thread by j101 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.