Click here to Skip to main content
15,910,277 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

How to profile a webservices that are running on iis server.

we need to extract a call count of a method and timestamp of that method when it is started and end.

and also exection time of a method of webservice.

Pls let me know if anything u know.

regards
saurabh
Posted

1 solution

These are the some useful link for profiling the web service & finding the hit count of a method.

Web Service Profiling

IIS Profiling - need to find the execution time of webservice methods

system.web.services.webmethodattribute.enablesession
 
Share this answer
 
Comments
saurbh ag 13-Sep-12 4:02am    
Hi sushil, thanks for this. now i am using performace tools of visual studio 2010 (vs_profiler.exe) and use vsperfaspnetcmd command and it generate some reports of profiling..bt still i didn't find out the invoke and end time of function of webservice..


need ur suggestion, is this d right way of profiling or something else...

regards

saurabh
Sushil Mate 13-Sep-12 5:02am    
precise way of timing is using the class System.Diagnostics.Stopwatch:
http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx[^].

you can put this stop watch in your method & get the elapsed time. I guess this is what you want.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900