WCF Profiling with Ants feasible ?

Code profiling for .NET developers.

WCF Profiling with Ants feasible ?

Postby raju.upadhyayula » Fri Aug 22, 2014 5:01 am

While developing we would like to Profile WCF Application on Dev Env. Can we Profile WCF Application running on Devenv.exe ?

The Help documentation is explaining about 3 methods,
1) WCF as .NET Executable
2) WCF Hosted on IIS
3) WCF Hosted as Windows Service.

But I want the option near to 2) WCF Hosted on Dev Env (VS 2010).
raju.upadhyayula
 
Posts: 2
Joined: Fri Aug 22, 2014 4:56 am

Postby jessica.ramos » Tue Aug 26, 2014 9:11 am

Hi Raju,

Thanks for your post!

To profile your WCF application running from Visual Studio, you can use the web development server option - http://documentation.red-gate.com/displ ... ent+server

If your application targets .NET 4.0, another option is to start your application normally, then use the "Attach to .NET 4+ process" option to attach to the already running Webdev.Webserver40.exe (though please note that this uses Sampling mode of profling, the least detailed mode)
Jessica Ramos
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 431
Joined: Mon Apr 23, 2012 12:13 pm

The URL Documentation is not sufficient

Postby raju.upadhyayula » Tue Aug 26, 2014 2:26 pm

Thank You for Replying.

Over the weekend, I could able to make over the solution. Assuming that will help all others hence sharing with all.


The URL pointed is addressing part of the Solution for Web Application Profiling. However for WCF Profiling, we need two steps based approach.

1. WCF Profiling: It is Best Practice to assign a Port Number to WCF Service. When setting up Profiling assign the same port # for Ants Profiler. Follow the steps given in the Url suggested.

Similarly if there are multiple services need to be profiled for multiple Services, then multiple Profiling need to be invoked.

2. Client Application Profiling: Client Application can be start either on Profiling mode or normal mode.

Once we start running the client application then Service Profiling will also be profiled.
raju.upadhyayula
 
Posts: 2
Joined: Fri Aug 22, 2014 4:56 am


Return to ANTS Performance Profiler 8

Who is online

Users browsing this forum: No registered users and 0 guests