How to see branch-misses and cache misses in Visual Studio 2022 C++?

卉航 林 20 Reputation points

In linux, we have "perf" command to see branch-misses.

On windows, is there a corresponding tool to see branch-misses and cache misses of a C++ program?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,442 questions
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,453 questions
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 25,571 Reputation points Microsoft Vendor

    Hello @卉航 林,

    Welcome to Microsoft Q&A forum.

    I don’t think Visual Studio has the same feature/tool. See if this tool meets your requirement: Windows Performance Toolkit.

    Best Regards,


    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful