Profiling tool - Checking code performance

Sateesh Kumar 1 Reputation point

Hello Everyone,

I am new to Visual Studio and I have developed unit tests which is taking lots of time for execution. I am using Diagnostics tools (Debug --> Windows --> Show Diagnostic Tools) while debugging to check my code performance. I found this tool as not helpful.

Can you please suggest some profiling tools for checking code performance? based on that I can make relevant changes in my code to improve performance.

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
965 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 27,721 Reputation points Microsoft Vendor

    Hi @Sateesh Kumar ,

    Welcome to Microsoft Q&A!

    Please refer to: Diagnose test method performance issues.

    To diagnose why a test method is taking too much time, select the method in Test Explorer and then choose Profile on the right-click menu.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Sateesh Kumar 1 Reputation point

    Hello, thank you for your response. Still I did not get the time of each block of code. Could you please send any URL's or links for profiling of unit tests to reduce the execution time.


    0 comments No comments