Measuring app performance with profiling tools
Application bottlenecks are a problem you will encounter during your career as a developer on any platform. It is for this reason that you must learn to manage the IDE tools that allow you to analyze the performance of your applications and objects created during the life cycle of your application. In this section, you will learn about these tools through a case study.
Analyzing the performance of an application
The first tool we will talk about is the CPU Usage diagnostic tool, which allows us to measure CPU usage during the execution of an application. This tool works thanks to the different breakpoints and debugger stops. Let’s see this practically.
In the project you downloaded from GitHub, in the Program.cs
file, you will find the following code section:
var performanceDemo = new PerformanceDemo();performanceDemo.Run(); Console.WriteLine("Press any key to exit...");
This example simulates the invocation...