Solved

Profiler for .NET like SQL profiler?

Posted on 2013-05-23
7
210 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

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