how to profile a CLR profiler


  • I have a CLR profiler written in C++, that is used to profile C# programs.  I want to profile the profiler itself, and for the profiler code get a statement count for each line of C++ code; I'll settle for boolean ("I've been executed.") if that's all I can get.

    How do I go about doing this?  I want to run the C# program, and as a side effect get the profile data for the C++ profiler loaded by the CLR.

    My experiments with VisualStudio 2010 "Analyze>" hasn't turned up anything that seems to work, but maybe I haven't dug deep enough.

    Thanks for any help!

    • Déplacé spacewrangler dimanche 4 mars 2012 15:38 (From:Building Development and Diagnostic Tools for .Net)
    vendredi 2 mars 2012 00:16


  • Hi RobertHenry,

    Thank you for posting in the MSDN forum.

    The Visual Studio Profiling Tools let developers measure, evaluate, and target performance-related issues in their code.

    Since I’m not an expert about the CLR profiler, so I’m not very sure whether the Visual Studio Profiling Tools can profile it. But if you want to know more about the Visual Studio Profiling Tools, this is a useful MSDN document about how to Analyzing Application Performance by Using Profiling Tools. Hope it can help.

    Best Regards,

    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

    lundi 5 mars 2012 10:16

Toutes les réponses