> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 開啟以程式設計方式取得的時間擷取

> 開啟以程式設計方式取得的時間擷取

使用 [PIXBeginCapture](/zh-TW/reference/tools/pix3/functions/pixbegincapture) API 取得的擷取必須經過轉換程序，才能在 PIX 中檢視。以程式設計方式取得擷取時，只會儲存原始分析資料。此資料必須經過分析處理，才能在 PIX 中檢視。

取得以程式設計方式進行的擷取之後，請使用 [xbcp](/zh-TW/tools/tools-console/commandlinetools/xbcp) 將其複製回開發 PC。

```cpp theme={null}
xbcp /x/title xd:\timingcapture.pevt timingcapture.pevt
```

Pevt 檔案會在安裝期間向系統註冊。因此，擷取複製到 PC 後，可以從檔案總管按兩下進行轉換並開啟。新的擷取沒有標題，需要儲存才能在日後略過轉換步驟。

或者，您也可以使用 PIX 中的 **Convert Trace** 功能表項目，將 .pevt 檔案轉換為 .xpix 檔案，如下圖所示。

<img src="https://mintcdn.com/microsoft-4404708b/cbgdF-D3rUKJ-fFH/images/gdk/tools/pix_convert_offline_timing_capture.png?fit=max&auto=format&n=cbgdF-D3rUKJ-fFH&q=85&s=0177d8484c5216098c6f00542e146387" alt="將離線擷取轉換為時間擷取" width="1180" height="702" data-path="images/gdk/tools/pix_convert_offline_timing_capture.png" />

產生的檔案現在可以在 PIX 中檢視。

## 另請參閱

[PIX](/zh-TW/tools/tools-console/pix/pix)

[時間擷取](/zh-TW/tools/tools-console/pix/new-timing-captures)


## Related topics

- [適用於 GDK 遊戲的 XBOX 與 Windows 版 PIX](/zh-TW/tools/tools-console/pix/index.md)
- [以程式設計方式調整規模](/zh-TW/services/playfab/multiplayer/servers/scaling-programmatically.md)
- [PIXBeginCapture](/zh-TW/reference/tools/pix3/functions/pixbegincapture.md)
- [PIXEndCapture](/zh-TW/reference/tools/pix3/functions/pixendcapture.md)
- [PIXCaptureParameters](/zh-TW/reference/tools/pix3/structs/pixcaptureparameters.md)
