currently I´m evaluating your memory profiler for our dev-team.
Our main product is an outlook add-in. We´d like to use your API to create unit tests that automatically tests the memory usage of our application. At the moment we´re stuck to get the API in the tests working (MemProfiler.IsProfiling always returns false).
We found out that we have to start the tests from your profiler and also outlook has to run via the profiler. So what we did is:
- Start the tests via VS when "Run tests under profiler" is active
- Outlook is started via our TestInitializer
But it always won´t work. Do you have any guidance how to profile an outlook add-in?
I found some pretty old threads that there we´re plans to integrate a function like "MemProfiler.AttachToProcess()", but I can´t find anything like that. Is there any progress on this topic or is this cancelled?
Thanks in advance!!
The "Run tests under profiler" feature makes it easier to run unit tests, but in your case it may be better to use the "Profile application" command and profile the "vstest.console.exe" program instead.
Anyway, I will try to create an Outlook add-in and see if I can come up with a suggestion on the best way to profile Outlook unit tests.
The MemProfiler.AttachToProcess API is not cancelled, but there's no immediately plans to implement it. When attaching to a process, you will get much less information, which will make the memory assertions less useful. For example, it will not be possible to distinguish between old and new instances.
SciTech Software AB
sorry for the late reply, there was a bit other stuff to do
Thanks for these information. We´re now able to get to profiler active, but it still doesn´t work completly.
I now start "vstest.console.exe" via Profile Application and outlook get´s started via our intitializer. MemProfiler.IsProfiling is also returning true. But we´re still not able to get the Assertion Fail when some of our own classes are still in use. I created some screenshot to explain that and will send them to you via mail (don´t wanna have them public).
Hopefully you can help us here
Users browsing this forum: No registered users and 15 guests