473,320 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 1203
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.