> ## 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.

# PIXScopedEvent

> PIXScopedEvent

# PIXScopedEvent

这些函数会为 CPU 活动的时序捕获创建一个用户自定义事件，用于显示在 Performance Investigator for XBOX (PIX) 的 **Timing Capture** 功能中。通过调用 `PIXScopedEvent` 定义的事件在 API 被调用时开始，并在包围它的作用域退出时结束。

<a id="overloadsSection" />

## 重载列表

| 名称                                                                                            | 说明                                                                                                                         |
| --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [PIXScopedEvent(UINT64, PCSTR, ...)](/reference/tools/pix3/functions/pixscopedevent)          | 为 CPU 活动的时序捕获创建一个用户自定义事件，用于显示在 Performance Investigator for XBOX (PIX) 的 **Timing Capture** 功能中。                           |
| [PIXScopedEvent(UINT64, PCWSTR, ...)](/reference/tools/pix3/functions/pixscopedevent)         | 为 CPU 活动的时序捕获创建一个用户自定义事件，用于显示在 Performance Investigator for XBOX (PIX) 的 **Timing Capture** 功能中。                           |
| [PIXScopedEvent(void\*, UINT64, PCSTR, ...)](/reference/tools/pix3/functions/pixscopedevent)  | 为特定上下文的 CPU 活动时序捕获（在 XBOX 上还可用于 GPU 活动）创建一个用户自定义事件，用于显示在 Performance Investigator for XBOX (PIX) 的 **Timing Capture** 功能中。 |
| [PIXScopedEvent(void\*, UINT64, PCWSTR, ...)](/reference/tools/pix3/functions/pixscopedevent) | 为特定上下文的 CPU 活动时序捕获（在 XBOX 上还可用于 GPU 活动）创建一个用户自定义事件，用于显示在 Performance Investigator for XBOX (PIX) 的 **Timing Capture** 功能中。 |

<a id="seealsoSection" />

## 概念性文档

* [ATG 系统合作检查清单](/build/atg-engagement/atg-systems-engagement)

## 另请参阅

[PIX (NDA 主题)](/tools/tools-console/pix/pix)<br />[PIX3](/reference/tools/pix3/pix3_members)


## Related topics

- [PIXScopedEvent function](/zh-CN/reference/tools/pix3/functions/pixscopedevent.md)
- [PIXScopedEvent reference](/zh-CN/reference/tools/pix3/functions/pixscopedevent_2.md)
- [PIXScopedEvent overview](/zh-CN/reference/tools/pix3/functions/pixscopedevent_4.md)
- [PIXScopedEvent function reference](/zh-CN/reference/tools/pix3/functions/pixscopedevent_3.md)
- [PIX_COLOR](/zh-CN/reference/tools/pix3/functions/pix_color.md)
