Pytanie xperf functionality for own application

  • giovedì 26 aprile 2012 09:13
     
     

    Hello

    We need to add some kind of Xperf functionality for own application (C++, Visual Studio 2010).

    Additional requirement is realtime-mode (xperf is not capable analyze for realtime ?).

    I think the application should use ETW and symbolic-data (Dbghelp). Are there exist some easier way to do that ? Some higher API ?

    Are there exists some example sourcecodes about that ?

    ---

Tutte le risposte

  • lunedì 30 aprile 2012 09:41
     
     

    Hi Esa,

    Thank you for visiting the MSDN forum.

    Would you mind providing detailed information?

    This forum is to discuss Visual Studio Performance Tools (Profiler) tool. It is used to analyze the Application Performance. Do you mean that you want to use it to get the Application Performance? If so, see:http://msdn.microsoft.com/en-us/library/z9z62c29.aspx. You will get more information. If not, I’m afraid that it is not the correct forum about this issue.

    In addition, I find that you post the same issue in this forumhere. So if you want to get more information about the Windows Performance Tools. The Windows Performance Toolkit forum will be better.

    If there's any concern, please feel free to let me know.

    Best Regards,


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

  • lunedì 30 aprile 2012 10:00
     
     

    Hi Esa,

    Update: Sorry for my wrong reply, I have deleted it and post my reply in this forum. J

    I am sorry, if that was wrong forum, but i did not know correct one.

    Mainly i would want to build an application, which acts somehow like xperf using ETW (collecting realtime performance data from kernel).

    Actually i have two questions about Xperf-tool:

    1. How can i use realtime-mode in xperf (i see there are realtime-parameter exists in xperf) ?

    2. Is it possible fast start and stop (for example by one button) to collect performance data and display performance results (for example stack walking) ? For example i would want to see almost immediately what function is consuming time too much.

    Based on your description, I’m afraid that it is related to “Windows Performance Analysis Tools”. I did some research about this issue, see:

    http://blogs.msdn.com/b/pigscanfly/archive/2008/03/02/using-the-windows-sample-profiler-with-xperf.aspx.

    http://msdn.microsoft.com/en-us/performance/cc825801. Hope it could help.

    In addition, since you have posted this issue in the correct forum, I will move this thread to the Off-topic forum. The Windows Performance Analysis Tools experts there will provide better support. Thanks for your understanding.

    Have a nice day,


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