Performance tuning tools under Windows

Performance tuning is to locate software performance bottlenecks and use corresponding technologies to optimize software performance under the premise of ensuring normal functions, thereby improving software performance.

This article mainly discusses the Diagnostic Tools and Performance Profiler tools provided by Visual Studio.

Note 1: Limited to the research level of the author, it is inevitable that there will be inappropriate expressions. Criticism and correction are welcome.

Note 2: The blog post will be updated from time to time, so stay tuned.

zero, overview

Performance tuning usually follows the steps below:

  • Determine a performance baseline

The performance baseline is actually benchmark data, which is used as control data to guide subsequent performance analysis and optimization work.

  • Locating Performance Bottlenecks

Generally, performance bottlenecks can be located through profiling tools or piling tests. It is best to estimate the theoretical performance optimization effect before performance optimization.

  • optimize performance

After the performance bottleneck is identified, it is necessary to optimize the performance bottleneck point from the aspects of algorithm logic, CPU usage, memory access, etc., in order to improve software performance.

Under the Linux system, you can use the perf tool to generate a flame graph (Flame Graph) to locate hot functions; under Windows, Microsoft provides toolkits such as PerfView and Xperf for performance analysis, and Visual Studio has built-in Diagnostic Tools and Performance Profiler to facilitate performance analysis in Visual Studio.

一、Visual Studio Diagnostic Tools

二、Visual Studio Performance Profiler

network information

Linux kernel profiling with perf

Measure app performance in Visual Studio

PerfView

xpef

Guess you like

Origin blog.csdn.net/qq_26221775/article/details/128158012