• Intel® Graphics Performance Analyzers 2020 R1
  • 12/20/2019
  • Public Content
Contents

Clock Domain API

某些应用程序要求能够利用不同于 CPU 生成的时间戳和频率的用户定义时间戳和频率跟踪事件,例如检测 GPU 上发生的事件。为此,可创建一个时钟域。
要创建时钟域,请使用以下基元:
__itt_clock_domain * ITTAPI __itt_clock_domain_create(__itt_get_clock_info_fn fn, void* fn_data)
基元的参数:
[in]
fn
指向回调函数的指针。该函数检索替代的 CPU 时间戳和频率并将时间戳和频率数据存储在时钟域结构字段 __itt_clock_info
[in]
fn_data
回调函数的变量;可以为 NULL
通过同步时钟域创建时捕获的参考时钟域基准时间戳和同时捕获的 CPU 时间戳,可在同一时间轴上显示不同时钟域发出的任务。
要重新计算时钟域基准时间戳和频率(如有必要,例如当 GPU 频率改变时),请使用以下基元:
__itt_clock_domain_reset()
 

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804