472,989 Members | 2,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,989 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 1199
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Juan Crespo | last post by:
Dear Sirs: My name is Juan Crespo and I write you from Spain, I work as application developer in Industrial Automation in Spain. We have as customer a company that wants to reuse old computers...
4
by: Bill Manring | last post by:
I need to capture the event when the user closes the browser in my application. I have some code in the session_End event, which works fine when the session times out, but I need to end the...
1
by: Jody Gelowitz | last post by:
I have seen some examples of how to capture a color from a point on screen using C#, but haven't come across anything with VB.NET. Is this possible under VB.NET? I know that I will need to use...
3
by: Melson | last post by:
hi can anyone help me how can i capture ENTER keystroke when the cell in datagrid is in editing mode. I'm now creating a data entry form with primary key in header and details in datagrid. So...
4
by: jxiang | last post by:
I created a child form that is much bigger than the MDI form in VB.Net. I am trying to capture the whole child form and save as an image or sent to printer. I tried to use BitBlt to capture the...
2
by: eBob.com | last post by:
I am using regular expressions and a particular feature called "capture" (I think) to suck some information out of some html. I could have never come up with this myself but Balena has an example...
1
by: patrickprog | last post by:
Purpose: Capture a web page listing for a current browser session. The web page will be from an https site, and this site does require a login. Therefore, the site cannot simply be referenced by...
1
by: Coaster | last post by:
orig ref here http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ff29cc370678911d/c0db5b7e3da283b9?lnk=st&q=gac+assembly+new+version&rnum=7#c0db5b7e3da283b9...
0
by: j101 | last post by:
I am attempting to set up Q Capture on RH Linux (x86_64) using DB2 9 fp2, but there seems to be a general problem loading a specify MQ shared library "/opt/mqm/lib/libmqm_r.so". I have MQ v6...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.