Solved

Profiler for .NET like SQL profiler?

Posted on 2013-05-23
7
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 63

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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

726 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