IADLXPerformanceMonitoringServices
导航: ADLX SDK 参考 → ADLX 接口 → 性能监控
IADLXPerformanceMonitoringServices 接口提供了配置性能监控功能和获取性能数据的方法。
| InterfaceId | IADLXPerformanceMonitoringServices |
|---|---|
| 智能指针接口名称 | 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 示例。
- ClearPerformanceMetricsHistory
- GetAllMetricsHistory
- GetCurrentAllMetrics
- GetCurrentFPS
- GetCurrentGPUMetrics
- GetCurrentPerformanceMetricsHistorySize
- GetCurrentSystemMetrics
- GetFPSHistory
- GetGPUMetricsHistory
- GetMaxPerformanceMetricsHistorySize
- GetMaxPerformanceMetricsHistorySizeRange
- GetSamplingInterval
- GetSamplingIntervalRange
- GetSupportedGPUMetrics
- GetSupportedSystemMetrics
- GetSystemMetricsHistory
- SetMaxPerformanceMetricsHistorySize
- SetSamplingInterval
- StartPerformanceMetricsTracking
- StopPerformanceMetricsTracking
子页面
- 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 - 减少性能指标跟踪的计数。
API 参考
本页面引用了
- IADLXAllMetrics
- IADLXFPS
- IADLXGPUMetrics
- IADLXInterface
- ClearPerformanceMetricsHistory
- GetAllMetricsHistory
- GetCurrentAllMetrics
- GetCurrentFPS
- GetCurrentGPUMetrics
- GetCurrentPerformanceMetricsHistorySize
- GetCurrentSystemMetrics
- GetFPSHistory
- GetGPUMetricsHistory
- GetMaxPerformanceMetricsHistorySize
- GetMaxPerformanceMetricsHistorySizeRange
- GetSamplingInterval
- GetSamplingIntervalRange
- GetSupportedGPUMetrics
- GetSupportedSystemMetrics
- GetSystemMetricsHistory
- SetMaxPerformanceMetricsHistorySize
- SetSamplingInterval
- StartPerformanceMetricsTracking
- StopPerformanceMetricsTracking
- IADLXSystemMetrics
- PerfSystemMetrics
- PerfSystemMetrics