How to disable Allocations Collection from DotMemory?

I've set up an automated test which opens and closes a page 100 times, at the beginning of this test I call 

dotMemoryApi.GetSnapshot();

and I then call it again at the end of the test.

After looking at the comparison it seems unmanaged memory increases by a fairly large amount (from an initial 200mb, up to 800mb).  While looking around I found the following thread.

https://resharper-support.jetbrains.com/hc/en-us/community/posts/207774725-dotMemory-and-unmanaged-memory?input_string=How%20to%20disable%20Allocations%20Collection%20from%20DotMemory%3F

I have a few questions.

Firstly.  How can I disable this Allocations Collection, no idea where the option for this is.  If disabling it won't work through the api call, then I can manually perform the test (although it will take a bit longer) to confirm whether the leak is actually a leak.

Any ideas?

0
1 comment
Avatar
Permanently deleted user

Nevermind, found it by setting dotMemoryAPI.CollectAllocations = false;  

Didn't solve my unmanaged leak problem...  the quest continues.

0

Please sign in to leave a comment.