How do I figure out whether my process is CPU bound, I/O bound, Memory bound or

旧时模样 提交于 2019-12-03 06:18:24

Start > Run > perfmon.exe

Performance Monitor can graph many system metrics that you can use to deduce where the bottlenecks are including cpu load, io operations, pagefile hits and so on.

Additionally, the Platform SDK now includes a tool called XPerf that can provide information more relevant to developers.

Mike Dunlavey

Random-pausing will tell you what is your percentage split between CPU and I/O time.

Basically, if you grab 10 random stackshots, and if 80% (for example) of the time is in I/O, then on 8+/-1.3 samples the stack will reach into the system routine that reads or writes a buffer. If you want higher precision, take more samples.

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