Struct amdgpu_top_json::JsonApp
source · pub struct JsonApp {
pub vec_device_info: Vec<JsonDeviceInfo>,
pub sus_app_list: Vec<DevicePath>,
pub base_time: Instant,
pub interval: Duration,
pub duration_time: Duration,
pub delay: Duration,
pub iterations: u32,
pub no_pc: bool,
pub amdgpu_top_version: Value,
pub rocm_version: Value,
pub title: String,
}
Fields§
§vec_device_info: Vec<JsonDeviceInfo>
§sus_app_list: Vec<DevicePath>
§base_time: Instant
§interval: Duration
§duration_time: Duration
§delay: Duration
§iterations: u32
§no_pc: bool
§amdgpu_top_version: Value
§rocm_version: Value
§title: String
Implementations§
source§impl JsonApp
impl JsonApp
pub fn new( title: &str, device_path_list: &[DevicePath], refresh_period: u64, update_process_index_interval: u64, iterations: u32, no_pc: bool, ) -> Self
pub fn update(&mut self)
pub fn json(&self) -> Value
pub fn run(&mut self)
pub fn run_fifo(&mut self, fifo_path: PathBuf)
Auto Trait Implementations§
impl Freeze for JsonApp
impl RefUnwindSafe for JsonApp
impl Send for JsonApp
impl Sync for JsonApp
impl Unpin for JsonApp
impl UnwindSafe for JsonApp
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