CPU Sampling in VS2010 via Attach To Process?

十年热恋 提交于 2019-12-13 07:21:27

问题


Is is possible to perform CPU Sampling in VS2010 via the Attach To Process option? When I do use that option it seems to always default to Memory Profiling. I can't launch CPU Sampling with the wizard because the ridiculous security software on our work PCs don't allow the DLL injection it uses.


回答1:


If you select Analyze\Profiler\New Performance Session, the Performance Explorer will open with a new performance session. In the properties of this item, you can specify the type of profiling you want to use:

You can then attach this session to your process via "Attach/Detach" in the session's context menu:



来源:https://stackoverflow.com/questions/15823969/cpu-sampling-in-vs2010-via-attach-to-process

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!