Interface IDeviceMetricsCollector
- Namespace
- DotCompute.Runtime.Services.Interfaces
- Assembly
- DotCompute.Runtime.dll
Service for collecting device-specific metrics. Monitors and tracks performance metrics for individual compute devices.
public interface IDeviceMetricsCollector
Methods
GetCurrentMetricsAsync(string)
Gets current device metrics. Retrieves the latest performance metrics for the specified device.
Task<DeviceMetrics> GetCurrentMetricsAsync(string acceleratorId)
Parameters
acceleratorIdstringThe unique identifier of the accelerator.
Returns
- Task<DeviceMetrics>
Current device metrics.
GetHistoricalMetricsAsync(string, DateTime, DateTime)
Gets historical device metrics. Retrieves device performance data for a specific time range.
Task<IEnumerable<DeviceMetrics>> GetHistoricalMetricsAsync(string acceleratorId, DateTime startTime, DateTime endTime)
Parameters
acceleratorIdstringThe unique identifier of the accelerator.
startTimeDateTimeThe start time of the historical period.
endTimeDateTimeThe end time of the historical period.
Returns
- Task<IEnumerable<DeviceMetrics>>
Collection of historical device metrics.
GetUtilizationStatsAsync(string)
Gets device utilization statistics. Provides detailed utilization analysis for the specified device.
Task<DeviceUtilizationStats> GetUtilizationStatsAsync(string acceleratorId)
Parameters
acceleratorIdstringThe unique identifier of the accelerator.
Returns
- Task<DeviceUtilizationStats>
Device utilization statistics.
StartCollectionAsync(string)
Starts collecting metrics for a device. Initializes metric collection for the specified accelerator.
Task StartCollectionAsync(string acceleratorId)
Parameters
acceleratorIdstringThe unique identifier of the accelerator.
Returns
- Task
A task representing the start operation.
StopCollectionAsync(string)
Stops collecting metrics for a device. Terminates metric collection for the specified accelerator.
Task StopCollectionAsync(string acceleratorId)
Parameters
acceleratorIdstringThe unique identifier of the accelerator.
Returns
- Task
A task representing the stop operation.