How to profile a .net WCF

Questions about YourKit .NET Profiler
Locked
Mohan
Posts: 1
Joined: Thu Feb 22, 2018 2:56 pm

How to profile a .net WCF

Post by Mohan »

Hi,

I'm using SoapUI to call the WCF.

Let me know how to profile the WCF...I didnt see anything in the help or forum on how to do that?

Mohan
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: How to profile a .net WCF

Post by Anton Katilin »

Hi,

Please try the following approach:

1) set agent startup option to start profiling immediately:
https://www.yourkit.com/docs/dotnet/hel ... ptions.jsp
For example, for CPU sampling use the option "sampling".

2) enable profiling of all processes:
https://www.yourkit.com/docs/dotnet/hel ... al_all.jsp

3) performance snapshots of profiled processes will be captured on process exit and stored in the snapshot directory:
https://www.yourkit.com/docs/dotnet/hel ... ot_dir.jsp
Open the snapshots for analysis.

Best regards,
Anton
ukdatabasesystem
Posts: 1
Joined: Mon Jan 13, 2020 11:55 am

Re: How to profile a .net WCF

Post by ukdatabasesystem »

I have a WCF service which is the default application you get when you create a new one from VS2010.
Now I create a Web application in the same solution and consume this web service.
Next I run the application and my web service. The application is connecting to the web service and retrieving the value.

I start the profiling and click a button which executes the functionality for accessing the Web service.
After finishing the profiling, it show the function of WCF in report but i am unable to see source code of WCF service.
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Re: How to profile a .net WCF

Post by Vladimir Kondratyev »

Please read this topic https://www.yourkit.com/docs/dotnet/hel ... ration.jsp
It describes how to navigate to source code in Visual Studio.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Locked