Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand the. NET Visual Studio code performance analysis tool

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly explains "how to understand. NET Visual Studio code performance analysis tool", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "how to understand. NET Visual Studio code performance analysis tool"!

The details are as follows:

Performance optimization in software development is a very important problem for programmers. A small problem can become a bottleneck in a large system. But it is very difficult for programmers to optimize the code by themselves. Fortunately, there are some great tools that can help programmers with code analysis and performance testing, greatly simplifying the process of code performance optimization for programmers. In July 2011, MSDN magazine released an issue entitled ".NET Code Analysis tools and Technologies", which benefited the majority of programmers. Four years later, many improvements have been made to these tools, and more choices have emerged at the same time. This paper simply combs some mainstream Visual Studio code performance analysis tools.

AMD CodeXL

AMD CodeAnalyst Performance Analyzer, released in 2011, has now been replaced by AMD CodeXL. The main purpose of AMD CodeXL is to help developers make better use of the computing performance of CPU, GPU and APU, with powerful GPU debugging, CPU and GPU code analysis, and static OpenCL kernel performance analysis.

AMD provides stand-alone CodeXL analysis tools that support Windows 7, Windows 8, and Linux systems. There is also an extended version of AMD CodeXL on Visual Studio 2010 and 2013, which integrates the debugging and analysis capabilities of GPU and APU in the Visual Studio development environment. The old AMD CodeAnalyst Performance Analyzer extension is still available today.

JetBrains dotTrace

After four years of development, JetBrains dotTrace is now a suite of code execution tracking tools and performance analysis tools. It includes dotTrace Performance and dotTrace Memory tools, dotTrace Performance is used to analyze code performance, such as function execution time, number of calls, time consumption ratio, etc., dotTrace Memory is generally used to analyze memory footprint. You can track, sample, or analyze the code line by line on both local and remote systems. DotTrace supports Microsoft .NET Framework until version 4.5.2, and can also be used to analyze Silverlight4 or 5 stand-alone desktop applications, Web applications, Windows Communications Foundation (WCF) services, and so on. New features include timeline analysis (timeline profiling) and SQL query analysis.

The dotTrace extension Visual Studio Gallery page provides a very clear and concise overview of the product. After reading the overview, if you are interested in the product, you can go to the JetBrains website to decide to download or buy.

JetBrains currently offers a time-limited free trial version as well as several licensing options, such as ReSharper Ultimate packages, including ReSharper,dotCover,dotTrace,dotMemory, and ReSharper C + +, all of which require only one license.

RedGate ANTS

RedGate ANTS performance Analyzer and ANTS memory Analyzer are another set of commercial tools that can be used to analyze .NET runnable files, ASP.NET applications, Web services in IIS, IIS Express, Web development servers, SharePoint 2007 or 2010 suites, Silverlight applications, Windows services, and COM + applications.

The ANTS performance analysis tool (figure 1) can help analyze any code base supported by .NET, as well as HTTP requests, store IO, and support data access to SQL servers and Oracle,MySQL,MariaDB,PostgreSQL.

Figure 1. Red Gate ANTS performance analysis tool

ANTS memory analysis tools can make .NET memory analysis easier, and ANTS memory analysis tools can be used to find memory leaks, optimize applications, make them have high memory utilization, check the health of code, and analyze any .NET application, including ASP.NET network applications.

The two tools support frameworks in any language from .NET 1.0 to 4.5, as well as Visual Studio 2005, 2008, 2010, 2012, and 2013. You can view the trial version and pricing on the RedGate website. There is also a free version of ANTS Profiler Visual Studio Add-in extension that gives you direct access to performance analysis tools and memory analysis tools on Visual Studio.

Telerik JustTrace

In 2013, Telerik won EQATEC, so the EQATEC analysis tool is now part of the Telerik JustTrace .NET memory and performance analysis tool. JustTrace provides two modes of performance analysis, a sampling analysis tool for lightweight analysis, and a tracking tool for collecting CLR events for more in-depth analysis. It also has the ability to capture memory analysis of .NET instance allocation snapshots.

JustTrace integrates Visual Studio 2013, 2012, and 2008, and can also be used as a stand-alone analysis tool. Telerik offers a 30-day trial period, and JustTrace is also available as part of the DevCraft tool suite.

Visual Studio quality and Diagnostic Center

In addition to the above analysis tools, Visual Studio itself also has excellent analysis and debugging tools, which are placed in the quality and diagnosis center of Visual Studio.

The quality and Diagnostics Center includes not only familiar Visual Studio analysis tools, but also some new tools, including JavaScript memory analysis, HTML UI responsiveness analysis, and XAML UI responsiveness analysis of Windows App Store applications, as well as energy consumption, CPU usage, memory usage analysis, etc. In addition, the JavaScript function time and performance wizard in Visual Studio 2012 has been updated to include in the new quality and diagnostics center. Because these tools are now available in the center, you can run multiple tools in a single analysis session and get the results of combined and cross-analysis.

You can also run the analysis tool on the performance and diagnostics page of Visual Studio 2015. Some debugging and diagnostics features have been enhanced in Visual Studio 2015, including support for JavaScript-based Apache Cordova projects and cross-platform debugging for C #-based Xamarin and Android projects

Other improvements include step through lambda expressions in the Monitor window, running, debugging and testing programs on other computers through Visual Studio remote tools, and built-in network diagnostics of HTTP traffic data.

Many of these new tools come with the powerful Visual Studio 2015 Diagnostic tools Debugger window and combine the output window, IntelliTrace historical data, and tools from the performance and Diagnostics Center.

Other performance analysis tools

In addition to the code performance analysis tools described above, there are other professional code performance analysis tools, many of which are developed by programmers like you and are available for free.

Clr Heap Allocation Analyzer extension is a Roslyn-based C # heap allocation diagnostic analysis tool that can be used to view clear allocations, boxing allocations, closure captures, etc. You can run the analysis tool as a stand-alone application or as a code aid within Visual Studio.

Visual Leak Detector for Visual C++ is an open source Visual C++ memory leak detection system that works with the Visual Studio debugger. Originally developed by Dan Moulding, the project is currently maintained by Arkadiy shapkin.

Frans Bouma's ORM Profiler extension (figure 2) allows you to drill into the entity framework data access code in real time to discover performance problems and quickly locate them. It has online and offline product analysis modes, which can directly navigate from the analysis results to the relevant code in the project.

Figure 2 debugging entity framework data access using ORM Profiler

To check and optimize static resources in the project, Mads Kristensen's Image Optimizer extension adds a right-click menu to any folder and icon in solution Explorer to help automatically optimize all PNG,GIF and JPEG files in the folder.

At this point, I believe you have a deeper understanding of "how to understand. NET Visual Studio code performance analysis tool", you might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report