Follow us

Visual Studio Profiling Tool

You have existing .net application and you are having performance problem to it. No problem we have profiling tool with visual studio to do profiling of your code base to idenfiy -

1. CPU utilization

2. Memory utilization

3. Asnyc method performance check

4. Database query performance check

and much more...

So to check this out, open your application in visual studio and make sure your keep your application in relese mode, so that the profiling tool give you better result as per your production environment code base.

Open profiling tool windo: Either use shortcut key (ALT + F2) or find it from Debug menu and then from there select the respective profiling option which you want to check for your code.

Case 1 : CPU utilication profiling

Here you can chagne the sample value per second as well. By default it contains 1000 sample per second to capture the no. of sample.

Click on below Start button and then run your application and browse it and once you are done with browsing then stop the profiling and you will find the result like below. And here by selecting the different time spike range from the graph it will give you that portion of your application code analysis.

Case 2: Database profiling.

In this case any ADO .Net mafily DB function including Entity Framework being use with your application and you want to profile the database queries.

As a result, you will find below

Case 3: C# Async method profiling

You have async method in your application and you know async run differently then the sync method and to profile async method.

Thank you. Happy learning.

Categories/Tags: Visual Studio Profiling Tool~profiling tool~performance~optimization

Recent Articles

1

AWS Saving Plan - Cost optimization tips

2
3

AWS RDS Key Concepts & Why you should use it?

4
5

Open-Search/Kibana - Multi Tenancy Setup

See All Articles