CPU采样VS2010中通过附加到进程? [英] CPU Sampling in VS2010 via Attach To Process?
问题描述
时,可以通过附加到进程选项来进行CPU采样的VS2010?当我使用该选项似乎总是默认内存概要分析。我无法启动CPU采样与向导,因为我们的工作电脑可笑的安全软件不允许注入DLL,它使用。
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.
推荐答案
如果您选择的分析\事件探查器\新的性能会话的,性能Explorer将使用一个新的性能会话中打开。在这个项目的属性,你可以指定分析的类型,您要使用:
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:
这篇关于CPU采样VS2010中通过附加到进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!