G
Guest
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.
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.