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 default_min_cores(&self) -> f32
pub fn default_min_cores(&self) -> f32
The minimum of a class or preset that names none: half the cores, but at least one
core, or all of them when there are fewer. light (1 core) never shrinks.
Sourcepub fn min_cores_reason(&self, min_cores: f32) -> Option<&'static str>
pub fn min_cores_reason(&self, min_cores: f32) -> Option<&'static str>
Returns why min_cores cannot be the fewest cores this profile starts with, or None
when 0 < min_cores <= cores.
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.