pub struct JobProfile {
pub cores: f32,
pub ram_mb: u64,
pub gpu_pct: f32,
pub vram_mb: u64,
pub est_secs: u64,
}Expand description
Resources a job is expected to need while it runs.
Fields§
§cores: f32Logical cores the job keeps busy.
ram_mb: u64Peak resident memory.
gpu_pct: f32GPU engine load as a percentage of one adapter.
vram_mb: u64Peak dedicated video memory.
est_secs: u64Expected run time.
Implementations§
Source§impl JobProfile
impl JobProfile
Sourcepub fn invalid_reason(&self) -> Option<&'static str>
pub fn invalid_reason(&self) -> Option<&'static str>
Returns why the profile is unusable, or None when every value is in range.
Sourcepub fn is_quick(&self) -> bool
pub fn is_quick(&self) -> bool
Whether a job of this profile ends within QUICK_MAX_SECS: a normal lease for it may
start while a benchmark still waits for other leases to end.
Sourcepub fn is_low_impact(&self) -> bool
pub fn is_low_impact(&self) -> bool
Whether a job of this profile loads the machine less than an idle desktop app: a normal lease for it may run beside a benchmark.
Trait Implementations§
Source§impl Clone for JobProfile
impl Clone for JobProfile
impl Copy for JobProfile
Source§impl Debug for JobProfile
impl Debug for JobProfile
Source§impl<'de> Deserialize<'de> for JobProfile
impl<'de> Deserialize<'de> for JobProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for JobProfile
impl PartialEq for JobProfile
Source§impl Serialize for JobProfile
impl Serialize for JobProfile
impl StructuralPartialEq for JobProfile
Auto Trait Implementations§
impl Forget for JobProfile
impl Freeze for JobProfile
impl RefUnwindSafe for JobProfile
impl Send for JobProfile
impl Sync for JobProfile
impl Unpin for JobProfile
impl UnsafeUnpin for JobProfile
impl UnwindSafe for JobProfile
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