剧集

碎片整理工具:#83 - 性能计数器 - 第 2 部分

碎片整理工具的这一集中,安德鲁·理查兹和乍得·贝德继续了一系列关于性能计数器的工作原理以及如何将它们添加到应用程序中的 3 部分。 本集重点介绍你开发的 XML 清单,该清单在使用 CTRPP 编译时转入代码。

资源:
性能计数器架构

时间表:
[00:00] - XML 清单
[01:56] - XSD
[02:33] - GUID 生成器
[03:43] - *.man 或 *.manifest 文件
[06:06] - 供应商
[08:06] - CounterSet
[11:30] - 计数器
[13:30] - CounterAttribute
[18:00] - 默认缩放 - 10^N
[23:17] - 通过电子邮件向我们发送问题 defragtools@microsoft.com

示例清单:

<instrumentationManifest xmlns=“https://schemas.microsoft.com/win/2004/08/events" xmlns:win=”https://manifests.microsoft.com/win/2004/08/windows/events" xmlns:xs=“http://www.w3.org/2001/XMLSchema" xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance"