Can I use the Profiler API in VS 2019?

MJ 6 Reputation points
2022-05-04T20:13:29.337+00:00

I'm trying to follow the steps for "Walkthrough: Using profiler APIs" (https://learn.microsoft.com/en-us/visualstudio/profiling/walkthrough-using-profiler-apis)

I am using Visual Studio Professional 2019 and I see that this Walkthrough page is only available for 2017 at the latest. Is the profiler API even available in VS2019?

The page says my build must reference the Microsoft.VisualStudio.Profiler.dll library, but I don't see that anywhere in my Visual Studio installation directory, despite having installed the ".NET Profiling Tools" component.

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.
1,096 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,431 Reputation points Microsoft External Staff
    2022-05-05T08:07:07.107+00:00

    Hi @MJ ,

    Welcome to Microsoft Q&A forum.

    Yes, the Profiler API is still available in VS 2019. You can check this path: C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019\Microsoft.VisualStudio.Profiler.dll.

    Best Regards,
    Tianyu

    • 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.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.