Struct libamdgpu_top::app::AppAmdgpuTop
source · pub struct AppAmdgpuTop {
pub amdgpu_dev: DeviceHandle,
pub device_info: AppDeviceInfo,
pub device_path: DevicePath,
pub stat: AppAmdgpuTopStat,
pub buf_interval: Duration,
}Fields§
§amdgpu_dev: DeviceHandle§device_info: AppDeviceInfo§device_path: DevicePath§stat: AppAmdgpuTopStat§buf_interval: DurationImplementations§
source§impl AppAmdgpuTop
impl AppAmdgpuTop
pub fn from_device_path_list<T: AsRef<AppOption>>( device_path_list: &[DevicePath], opt: T ) -> Vec<Self>
pub fn new( amdgpu_dev: DeviceHandle, device_path: DevicePath, opt: &AppOption ) -> Option<Self>
pub fn update(&mut self, interval: Duration)
pub fn update_pc(&mut self)
pub fn update_pc_with_sampling(&mut self, sample: &Sampling)
pub fn clear_pc(&mut self)
Auto Trait Implementations§
impl Freeze for AppAmdgpuTop
impl RefUnwindSafe for AppAmdgpuTop
impl Send for AppAmdgpuTop
impl Sync for AppAmdgpuTop
impl Unpin for AppAmdgpuTop
impl UnwindSafe for AppAmdgpuTop
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