# 6.2.2.Windows Performance Monitor

## 1.使用Performance Monitor初步釐清效能瓶頸

* 初步釐清效能瓶頸是發生在四大類中的哪一類
  * 1.開啟Performance Monitor
  * 2.選取[四種效能分析指標](https://jenhsuan.gitbooks.io/debugging-tools-experience/content/chapter4-fu-zhi-wen-ti-de-ji-qiao/42zhui-zong-cheng-shi-zhi-xing/422chu-cuo-gong-ju/4231xiao-neng-fen-xi-zhi-biao.html)的計數器
    * 點選**效能 -> 監視工具 -> 效能監視器** ![](https://github.com/jenhsuan/debugging-tools-experience/tree/91ad7a157f155ea77065c5600800bb4627bd1ae2/assets/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202017-06-21%20%E4%B8%8A%E5%8D%888.43.38.png)
    * 點選"+"號 ![](https://github.com/jenhsuan/debugging-tools-experience/tree/91ad7a157f155ea77065c5600800bb4627bd1ae2/assets/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202017-06-21%20%E4%B8%8A%E5%8D%888.45.08.png)
    * 將四大類都加入計數器中 ![](https://github.com/jenhsuan/debugging-tools-experience/tree/91ad7a157f155ea77065c5600800bb4627bd1ae2/assets/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202017-06-21%20%E4%B8%8A%E5%8D%888.53.31.png)

## 2.使用Process Monitor細部追蹤

* 初步鎖定方向後, 使用[Process Monitor](https://jenhsuan.gitbooks.io/debugging-tools-experience/content/chapter4-fu-zhi-wen-ti-de-ji-qiao/42zhui-zong-cheng-shi-zhi-xing/422chu-cuo-gong-ju/4224process-monitor.html)可以知道可能是在哪個process中有此情形
