gpt4 book ai didi

windows - perfmon 性能计数器是否基于与 xperf 使用的 ETW 事件相同的 "under the hood"?

转载 作者:可可西里 更新时间:2023-11-01 14:42:13 31 4
gpt4 key购买 nike

我最近开始熟悉 perfmon 和 xperf。 Perfmon 使用性能计数器,而 xperf 使用 ETW(Windows 事件跟踪)。 Perfmon 具有提供数据的对象,而 xperf 使用“提供者”组。作为这个领域的新手,我想问是否有人可以告诉我 perfmon 使用的性能计数器是否真的与 xperf 使用的 ETW 事件基于相同的东西,如果是这样,你能把连接弄清楚吗?如果它们不是基于同一事物,您能否解释一下它们有何不同?

最佳答案

Perf countersETW是两个不同的东西,它们不共享底层基础设施。

Counters are used to provideinformation as to how well theoperating system or an application,service, or driver is performing. Thecounter data can help determine systembottlenecks and fine-tune system andapplication performance. The operatingsystem, network, and devices providecounter data that an application canconsume to provide users with agraphical view of how well the systemis performing.

Event Tracing for Windows (ETW) is anefficient kernel-level tracingfacility that lets you log kernel orapplication-defined events to a logfile.

它们都可以用于性能分析,但 ETW 提供了应用程序内部行为随时间变化的审计跟踪(如传统的用户模式日志文件),而 PerfMon 提供了应用程序中当前统计信息的 View ('current队列长度”),或在其生命周期内聚合的数据(例如“平均吞吐量”、“发送的总字节数”)。

关于windows - perfmon 性能计数器是否基于与 xperf 使用的 ETW 事件相同的 "under the hood"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4112272/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com