Product Reviews

ANTS Performance Profiler

Discover what your application is really doing-method by method, line by line-with Red Gate ANTS Performance Profiler.

Your application is behaving poorly. You'd think that having written the application yourself, you could diagnose the problem. Unfortunately, any real-world program is complex enough that it's unlikely that even the application author himself can fully understand how the code performs under live fire.

That's where Red Gate Software's ANTS Performance Profiler 5.1 becomes an important part of your toolkit. The tool enables developers to determine where their applications are really spending their time. ANTS Performance Profiler can be used either within the Visual Studio IDE or as a stand-alone application to analyze your application in its runtime environment.

Integration with Visual Studio
After downloading and installing ANTS Performance Profiler, you'll find a new ANTS 5 menu added to the Visual Studio menu bar. For many Windows Forms applications you'll be able to profile your application just by selecting Profile Performance from the ANTS 5 menu. This will start both the profiler and the application. However, not all applications can be profiled directly; Web Projects or Windows Services are two such applications. For those applications, ANTS Performance Profiler must be started as a stand-alone program and attached to the application. I found that when working with complex solutions containing multiple projects, some of which couldn't be profiled directly, I couldn't use the Profile Performance menu choice and had to start the tool in stand-alone mode.

After you start the ANTS Profiler, the Project Profiler Settings dialog displays, allowing you to select the executable you want to profile. You can also attach ANTS to IIS to profile an ASP.NET application or attach it to a Windows Service. You can then start your profiling session, which triggers ANTS to launch your executable.

During the profiling session, ANTS Performance Profiler displays a graph showing key performance variables such as I/O and CPU usage. But it's when you stop your profiling session that the software reveals its full power. In addition to providing you with an overview of where your application spends its time, the tool also allows you to drill down to individual methods and even lines within methods. You can see how many times any method or line was called and how long, on average, each took to execute (see Figure 1).


[Click on image for larger view.]
Figure 1. The top part of the Profiler window lets you select a time range to review; the middle part provides a high-level overview of time spent in the application's objects; and the lower part lets you look at time spent executing individual lines.

Customization
ANTS Performance Profiler will probably do everything you need out of the box. However, you can pick and choose which performance measures you're interested in or insert instrumentation into your application to add markers to the log created by the software. You can also have ANTS Performance Profiler keep an updated log of your application's activity, which is useful for problems that only occur when an application is running for long periods of time.

Not every application needs ANTS Performance Profiler. However, if you're not getting the performance or behavior that you want from your application and you're not sure where the problem is, this tool will help you find it.

ANTS Performance Profiler 5.1

Red Gate Software Ltd.
Web: www.red-gate.com
Phone: 866-997 0397
Price: $395; $494 with support and upgrades
Quick Facts: A performance profiler for analyzing performance bottlenecks
Pros: Easy to use with detailed information organized for ready access
Cons: Integration with Visual Studio not fully realized

About the Author

Peter Vogel is a system architect and principal in PH&V Information Services. PH&V provides full-stack consulting from UX design through object modeling to database design. Peter tweets about his VSM columns with the hashtag #vogelarticles. His blog posts on user experience design can be found at http://blog.learningtree.com/tag/ui/.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube