Re: How to learn amount of memory used by the process at the current t



I realized that I hadn't answered your question. My apologies.

Check out the CLR Profiler
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenethowto13.asp

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Alexey Smoliy" <Alexey Smoliy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4D4B838B-9717-4FED-8921-90DA4F55D644@xxxxxxxxxxxxxxxx
> Hi,
>
> I want to test .net class for memory leak presence. For this I want to
> know
> how much memory is used before creating and after deleting class instance.
> How can I do it? And could it help me find a memory leak in general? I
> know
> about profilers, but I want to test a class automatically, may be using
> .net
> profiler api. And there are also helpful GC functions like
> GC.GetTotalMemory,
> GC.Collect, GC.WaitForPendingFinalizers. But I cann't think up something
> that
> will work correct. Could you help me?
>
> Thanks,
> Alexey.


.



Relevant Pages

  • Re: Memory Leak?
    ... >>I had been using my computer with vb.net to develop some applicaitons for a ... >> Is this indicating that I have a memory leak in one of my VB.Net ... > That's hard to answer because even other software running on your machine ... > Allocation Profiler src ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Winforms and memory usage
    ... I went chasing a 'memory leak' where the Private bytes and Working Set ... RedGate ANTS Memory Profiler is also excellent. ... The learning curve for SciTech is about a day, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Debugging
    ... Try adding traces to catch the exact point of reset ... A memory leak under .NET is possible, but I would explor other weak points ... Ido ... >> Try using any .NET Memory Profiler. ...
    (microsoft.public.dotnet.framework)
  • Re: Java app takes 100% of CPU
    ... > memory leak typically consumes memory rather than CPU cycles. ... Might be time to learn what a profiler does. ... Personally I think a profiler can help teach students better ...
    (comp.lang.java)