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

后端 未结 2 1495
Happy的楠姐
Happy的楠姐 2021-02-07 10:31

I\'m trying to speed up the time taken to compile my application and one thing I\'m investigating is to check what resources, if any, I can add to the build machine to speed thi

2条回答
  •  你的背包
    2021-02-07 11:05

    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.

提交回复
热议问题