简体   繁体   中英

CPU Sampling in VS2010 via Attach To Process?

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.

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:

将性能会话附加到流程

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM