跳至内容

IADLXPerformanceMonitoringServices

导航: ADLX SDK 参考ADLX 接口性能监控

IADLXPerformanceMonitoringServices 接口提供了配置性能监控功能和获取性能数据的方法。

InterfaceIdIADLXPerformanceMonitoringServices
智能指针接口名称IADLXPerformanceMonitoringServicesPtr
继承自IADLXInterface
被继承不适用

IADLXPerformanceMonitoringServices 接口提供:

  • 性能指标采样的配置。
  • 启动和停止性能指标采样的方法。
  • 对性能指标缓冲区数据的访问。

方法

方法描述
ClearPerformanceMetricsHistory清除性能监控的缓冲区。
GetAllMetricsHistory获取时间间隔内所有指标的引用计数列表。
GetCurrentAllMetrics获取当前指标集(IADLXAllMetrics 接口)的引用计数。
GetCurrentFPS获取当前 FPS 指标(IADLXFPS 接口)的引用计数。
GetCurrentGPUMetrics获取 GPU 当前指标集(IADLXGPUMetrics 接口)的引用计数。
GetCurrentPerformanceMetricsHistorySize获取性能监控缓冲区中指标历史记录的持续时间。
GetCurrentSystemMetrics获取当前指标集(IADLXSystemMetrics 接口)的引用计数。
GetFPSHistory获取时间间隔内 FPS 指标的引用计数列表。
GetGPUMetricsHistory获取 GPU 在时间间隔内的 GPU 指标的引用计数列表。
GetMaxPerformanceMetricsHistorySize获取性能监控缓冲区的持续时间。
GetMaxPerformanceMetricsHistorySizeRange获取性能监控缓冲区的最大大小、最小大小和步长大小。
GetSamplingInterval获取性能监控的采样间隔。
GetSamplingIntervalRange获取性能监控的最大采样间隔、最小采样间隔和步长采样间隔。
GetSupportedGPUMetrics获取用于发现 GPU 支持哪些性能指标的引用计数接口。
GetSupportedSystemMetrics获取用于发现系统支持哪些性能指标的引用计数接口。
GetSystemMetricsHistory获取时间间隔内系统指标的引用计数列表。
SetMaxPerformanceMetricsHistorySize设置性能监控缓冲区的持续时间。
SetSamplingInterval设置性能监控的采样间隔。
StartPerformanceMetricsTracking增加性能指标跟踪的计数。
StopPerformanceMetricsTracking减少性能指标跟踪的计数。

要求

头文件include “IPerformanceMonitoring.h”
最低版本1.0

示例

有关如何在 C++ 应用程序中使用此接口,请参阅 PerfSystemMetrics C++ 示例

对于 C 应用程序,请参阅 PerfSystemMetrics C 示例

子页面

API 参考

本页面引用了

© . This site is unofficial and not affiliated with AMD.