Free NET Profiler.
Reflection is a wonderful thing. With it, you can keep track of exactly what your .NET application is doing. This opens up the possibility of some very interesting tools, of which nprof, a freeware, open-source .NET profiler, is one.
![[nprof screenshot]](http://www.larkware.com/Images/nprof.jpg)
nprof is quite simple to use. Browse to the application you want to run, supply any command line, click the Start button. (There's also a VS .NET add-in version of nprof, for tighter integration with a single version). Then just work your application as you usually would. When you're done, close the application and nprof comes back and shows you which methods were called, how many times they were called, and what percent o the total calls and total time they were responsible for. One nice touch is the treeview of namespaces, which lets you filter the list down to only the calls that you're interested in. Of course you can also sort everything. Like any other profiler, nprof will help you drill down on problem code in your application; unlike many of them, it's free.
[Larkware News]
Here's another one of those things that looks really cool, but I haven't had a chace use yet. I wonder if it works with web apps. I had tried to get two similar tools to profile ASP.NET applications, but I could not get either to work correctly (or at all).
[ScottW's ASP.NET WebLog]
It's easy (ish). To debug ASP.NET you need to set an environment variable for the process. Take a look at the tools developer guide in the framework sdk tools folders. It contains a file on profilers that explains how to do it.
What other blogs are saying about this post.
10:34:03 AM
|