# 6.2.4.Windows Performance Toolkit

## 1.用途

* Windows Performance Toolkit

  相當於 [Performance 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/4231windows-performance-monitor.html) + [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 Explorer + [WinDbg](https://jenhsuan.gitbooks.io/debugging-tools-experience/content/chapter3-windbg.html): 可以取得效能歷史訊息, 並提供threads與stack的進一步資訊

## 2.用法

* 1.下載Windows SDK並安裝Windows Performance Toolkits, 可以參考[這篇](https://jenhsuan.gitbooks.io/debugging-tools-experience/content/chapter3-windbg/31an-zhuangwindbg.html)
* 2.先開啟Windows Performance Recorder, 有點像是[Windows Performance 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/4231windows-performance-monitor.html)的用法, 可以勾選[四種效能分析指標](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/螢幕快照%202017-06-25%20上午8.21.33.png)
  * Start 開始搜集資訊
  * Save 停止並儲存資訊 ![](https://github.com/jenhsuan/debugging-tools-experience/tree/91ad7a157f155ea77065c5600800bb4627bd1ae2/assets/螢幕快照%202017-06-25%20上午8.37.16.png)
  * 儲存完成後, 點選 **Open in WPA** 開啟Windows Performance Analyzer ![](https://github.com/jenhsuan/debugging-tools-experience/tree/91ad7a157f155ea77065c5600800bb4627bd1ae2/assets/螢幕快照%202017-06-25%20上午8.40.11.png)
* 3.從Windows Performance Analyzer最左邊的panel中可以看出那個項目異常, 進一步點開看細節追查 ![](https://github.com/jenhsuan/debugging-tools-experience/tree/91ad7a157f155ea77065c5600800bb4627bd1ae2/assets/螢幕快照%202017-06-25%20上午8.44.58.png)
* 4.分析
  * Storage
  *


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jen-hsuan-hsieh.gitbook.io/debugging-tools-experience/chapter5-xiao-neng-fen-xi/61windows-process/4223windows-performance-toolkit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
