dotMemory checking and TestComplete programatically inspecting dmw


I've been digging around in the documentation and it doesn't appear to me that I'm able to do what I want.

I have a WPF desktop application which is quite large (too large to spin up and orchestrate all the entities required in a unit test) and is being stressed tested by TestComplete (an Automated UI testing tool)

I have successfully written a unit test, which, when executed with dotMemoryUnit attached allows me to programmatically check if a particular object exists and the number of instances of that object.

I can connect to a particular PID and generate a dotMemory workspace (dmw) using the dotMemory command line tool.


I want to initiate my soak test (using TestComplete) connect to the PID and generate a dump. Then - programmatically - analyse the generated dump to check that the count of a particular object isn't greater than 1.

I don't seem to be able to load a dmw in c# and interrogate it unless I am using dotMemoryUnit.

Any advice welcome

Official comment

Hi, Alex!
Thanks for your interest in automating memory profiling.

We have such a feature in our roadmap, but we don't have an ETA yet.
You can subscribe to this ticket to be notified when it becomes available.

Thank you for the prompt reply, will have to defer until you support this.


Please sign in to leave a comment.