How do I run the Visual Studio 2012 memory profiler? I'm getting the error DA0002

后端 未结 1 498
無奈伤痛
無奈伤痛 2021-01-20 02:44

I\'m trying to run the VS12 memory profiler on a WinForms project but when I do, the application starts up, it appears to be working correctly, but then the report comes up

相关标签:
1条回答
  • 2021-01-20 03:28

    I was able to generate Sample Profiling Report by using "Developer Command Prompt for VS2012" following VSPerfCLREnv

    VSPerfCLREnv /SampleOn
    VSPerfCLREnv /SampleGC
    VSPerfCmd /Start:Sample /Output:MyApp.exe.vsp /Launch:MyApp.exe
    

    Then after closing MyApp.exe have executed VSPerfCmd.exe /Shutdown in same Command Prompt, and MyApp.exe.vsp was generated

    VSPerfCmd.exe /Shutdown
    

    This file MyApp.exe.vsp can be open in VS2012

    Note: Executing VSPerfCmd with /GC option shows the same DA0002 error. My environment is Win7 x86.

    0 讨论(0)
提交回复
热议问题