none
Performance Counter for Measuring Another Performance Counter (perfmon) RRS feed

  • Question

  • My application has written performance counter for calculating something. Counter is itself running and writing to itself.
    I need to run tests to find memory leaks, CPU utilization etc for the counter. Using perfmon for measuring metrics doesn't look convincing. Is there any other way to do it.

    Help Appreciated
    Vinay Chopra
    Friday, February 13, 2009 11:13 PM

Answers

  • Hi Vinay,

    XPerf in the Windows Performance Toolkit that you can download from the Windows Performance Analysis DevCenter is one of the best tools to measure CPU usage on a Windows system of any given process/module/codepath. Please follow the "Getting Started" section at http://msdn.microsoft.com/en-us/performance/default.aspx.

    Memory leak analysis depends on what kind of memory allocator you are using. There is a number of different tools available and I suggest trying AppVerifier and memory specific SysInternals tools.

    We are working on adding heap usage analysis in WPT 4.6 that will ship as part of Windows 7 SDK. This will let you see how your application is using the heap(s), seeing each individual allocation and deallocation.

    Hope this helps,
    Michael
    • Marked as answer by Vinay.Chopra Monday, February 16, 2009 5:17 PM
    Sunday, February 15, 2009 7:09 PM

All replies

  • Hi Vinay,

    XPerf in the Windows Performance Toolkit that you can download from the Windows Performance Analysis DevCenter is one of the best tools to measure CPU usage on a Windows system of any given process/module/codepath. Please follow the "Getting Started" section at http://msdn.microsoft.com/en-us/performance/default.aspx.

    Memory leak analysis depends on what kind of memory allocator you are using. There is a number of different tools available and I suggest trying AppVerifier and memory specific SysInternals tools.

    We are working on adding heap usage analysis in WPT 4.6 that will ship as part of Windows 7 SDK. This will let you see how your application is using the heap(s), seeing each individual allocation and deallocation.

    Hope this helps,
    Michael
    • Marked as answer by Vinay.Chopra Monday, February 16, 2009 5:17 PM
    Sunday, February 15, 2009 7:09 PM
  • Thanks Michael.
    Vinay Chopra
    Monday, February 16, 2009 9:35 PM
  • I dowloaded the windows SDK, but i cannot find the xperf binary in that package.
    Friday, February 19, 2010 8:48 PM
  • look inside the Windows SDK\7.0\bin folder and install the WPT.msi which matches your CPU platform (x86, x64).
    "A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
    Saturday, February 20, 2010 5:49 PM