locked
how to profile a CLR profiler

    Question

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

    • Moved by spacewrangler Sunday, March 04, 2012 3:38 PM (From:Building Development and Diagnostic Tools for .Net)
    Friday, March 02, 2012 12:16 AM

Answers

  • 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

    Monday, March 05, 2012 10:16 AM
    Moderator

All replies

  • Have a look into Semantic Designs http://www.semdesigns.com/Products/Profilers/ they may have a profiler that helps as they do code coverage for C# and C++ and may have a utility that would help
    Sunday, March 04, 2012 6:05 AM
  • 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

    Monday, March 05, 2012 10:16 AM
    Moderator
  • Hi RobertHenry,

    Any update? Could you get useful information from my reply?

    Would you mind letting us know the result of the suggestion?

    Best Regards,



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

    Friday, March 09, 2012 1:44 AM
    Moderator