Solved

Profiler for .NET like SQL profiler?

Posted on 2013-05-23
7
204 Views
Last Modified: 2013-06-02
In SQL we run profiler to identify what are the SPs are being hit and what parameters are passed to the method.

Likewise is there any easy way to identify .net application what are the methods are being hit and what parameters are passed to the methods?

By debugging the application and using Log file writing in each method we could accomplish this. Other than that any tool or any other method is in place? If you know please do share.
0
Comment
Question by:Easwaran Paramasivam
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 39191449
Hi  EaswaranP;

When debugging your application you can hover over a variable to see its value. If you want to know who called the current function you are in open the Call Stack window and it will have all the methods that were called and if you double click on a method and hover over a variable you will see the value as it was before the next function was called.
0
 
LVL 11

Expert Comment

by:madgino
ID: 39194244
0
 
LVL 40
ID: 39197860
Same as the SQL profiler is provided only in higher end editions of SQL Server, there is a code profiler in the Premium and Ultimate editions of Visual Studio, but not in Express and Professional.

In these, as suggested by madgino, your only solution if to use tracing. You have to build the whole thing yourself however, and doing so for a complete application can be a pain.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 16

Author Comment

by:Easwaran Paramasivam
ID: 39198593
http://msdn.microsoft.com/en-us/library/bb386420(v=vs.100).aspx speaks about asp.net application. But my applications are Windows Application, WPF applications.
0
 
LVL 40
ID: 39199038
When you see System.Diagnostics somewhere, you  are dealing with the framework debugging features. It works in any kind of application. So System.Diagnostics.Trace also works in Windows and WPF applications.

You can also use System.Diagnostics.Debug, an alternative class to do the same thing. Except for a couple of properties and methods, Debug and Trace are interchangeable.
0
 
LVL 11

Accepted Solution

by:
madgino earned 500 total points
ID: 39199156
As James said, tracing and debug works for WPF too, here are some links that might help:
http://msdn.microsoft.com/en-us/library/dd409960.aspx
http://msdn.microsoft.com/en-us/library/aa969767.aspx
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
ID: 39214833
Thanks.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now