pub struct PerformanceMonitoringServices(/* private fields */);Implementations§
Source§impl PerformanceMonitoringServices
impl PerformanceMonitoringServices
pub fn current_gpu_metrics(&self, gpu: &Gpu) -> Result<GpuMetrics>
pub fn sampling_interval_range(&self) -> Result<ADLX_IntRange>
Sourcepub fn set_sampling_interval(&mut self, interval_in_ms: i32) -> Result<()>
pub fn set_sampling_interval(&mut self, interval_in_ms: i32) -> Result<()>
interval_in_ms must be in the range provided by Self::sampling_interval_range().
pub fn sampling_interval(&self) -> Result<i32>
pub fn max_performance_metrics_history_range(&self) -> Result<ADLX_IntRange>
Sourcepub fn set_max_performance_metrics_history_size(
&mut self,
size_in_sec: i32,
) -> Result<()>
pub fn set_max_performance_metrics_history_size( &mut self, size_in_sec: i32, ) -> Result<()>
size_in_sec must be in the range provided by Self::max_performance_metrics_history_range().
pub fn max_performance_metrics_history_size(&self) -> Result<i32>
pub fn clear_performance_metrics_history(&self) -> Result<()>
pub fn current_performance_metrics_history_size_in_sec(&self) -> Result<i32>
pub fn start_performance_tracking(&mut self) -> Result<()>
pub fn stop_performance_tracking(&mut self) -> Result<()>
pub fn gpu_metrics_history( &self, gpu: &Gpu, start_in_ms: i32, stop_in_ms: i32, ) -> Result<GpuMetricsList>
pub fn supported_gpu_metrics(&self, gpu: &Gpu) -> Result<GpuMetricsSupport>
Trait Implementations§
Source§impl Clone for PerformanceMonitoringServices
impl Clone for PerformanceMonitoringServices
Source§fn clone(&self) -> PerformanceMonitoringServices
fn clone(&self) -> PerformanceMonitoringServices
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Interface for PerformanceMonitoringServices
impl Interface for PerformanceMonitoringServices
const IID: &'static str = "IADLXPerformanceMonitoringServices"
type Impl = IADLXPerformanceMonitoringServices
type Vtable = IADLXPerformanceMonitoringServicesVtbl
Source§fn into_raw(self) -> *mut Self::Impl
fn into_raw(self) -> *mut Self::Impl
Returns the raw COM/ADLX interface pointer and abandons ownership. It is the caller’s
responsibility to release the COM/ADLX interface pointer.
Auto Trait Implementations§
impl Freeze for PerformanceMonitoringServices
impl RefUnwindSafe for PerformanceMonitoringServices
impl Send for PerformanceMonitoringServices
impl Sync for PerformanceMonitoringServices
impl Unpin for PerformanceMonitoringServices
impl UnsafeUnpin for PerformanceMonitoringServices
impl UnwindSafe for PerformanceMonitoringServices
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more