chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
I am trying to measure performance of some code, and I use TypeMock Isolator to fake part that is not relevant for me. Then I run a session with Red Gate's ANTS profiler and enable TypeMock using TMockRunner.

The session runs fine, but the problem is that ANTS Profiler does not see the source code which makes the whole session useless. If I run the session without TMockRunner then the source is detected but I get no fakes.

Since both Isolator and ANTS are profilers, I understand they may interfere with each other. Does it mean there is no chance of getting them work together properly?
asked by (19.4k points)

12 Answers

0 votes
Hi Vagif,

Although ANTS is a profiler, we can link with other profilers. You can see the supported one when you open the configuration program on the Link page.

Different profilers work differently, and we need to see how ANTS works to see what we can do to link with it.

So I wouldn't say no chance at all. We'll explore and get back to you.

Thanks
answered by (14.5k points)
0 votes
Well, since ANTS is not on the list of supported once, I'll be greatful if you can explore this.

Thanks
answered by (19.4k points)
0 votes
What about review results?

Thanks
answered by (9.7k points)
0 votes
We need to investigate ANTS integration. I'll let you know when we have any conclusions
answered by (11.9k points)
0 votes
I'm Jason Crease, a Test Engineer on RedGate's ANTS Profiler.

ANTS records no data from processes run under TMockRunner. This is because TypeMock overwrites the environment variables set by ANTS Profiler, which are required for ANTS Profiler to use the .NET profiling API. Only one profiler can be attached to a given process, and TypeMock removes ANTS Profiler and attachs itself.

I'm afraid I don't know of a workaround.
answered by (140 points)
0 votes
Hi Jason,

You're correct, ANTS environment variables are overwritten by Typemock Isolator. In the general it's true that only one profiler can be attached, but we use Typemock Linker which enables running more than one profiler.

In order to make it linkable with ANTS it needs the environment variables of ANTS. I'll contact you by mail for details.

Best Regards,
Elisha
Typemock Support Team
answered by (12k points)
0 votes
I am glad to see the attention from RedGate engineer in this thread. Hope that you guys will find intergation points. These two great products must work together! :)
answered by (19.4k points)
0 votes
Thanks to Jason's help the integration will take place in the near future.

Best Regards,
Elisha
Typemock Support Team
answered by (12k points)
0 votes
Hi!

How are there? Do we have a chance to use ANTS with Typemock?
answered by (9.7k points)
0 votes
Hi,

At the moment the integration with ANTS isn't working. I'll update on this thread the moment it'll be fixed.

Regards,
Elisha,
Typemock Support,
answered by (12k points)
...