/// Estimates the performance and power of this thermal state for the given model of desired
/// performance.
Estimates the performance and power of this thermal state for the given model of desired
performance.
Estimates the performance and power of this thermal state for the given model of desired performance .
fn estimate_perf_and_power(&self, performance_model: PerformanceModel) -> PerfAndPower {
        let performance = match performance_model {
            Saturated => self.performance_capacity,
            FixedValue(p) => NormPerfs::min(self.performance_capacity, p),
        };
        let dynamic_power = self.dynamic_power_per_normperf.mul_scalar(performance.0);
        PerfAndPower { performance, power: self.static_power + dynamic_power }
    }
fn estimate_perf_and_power ( & self , performance_model : PerformanceModel ) -> PerfAndPower { let performance = match performance_model { Saturated => self . performance_capacity , FixedValue ( p ) => NormPerfs :: min ( self . performance_capacity , p ) , } ; let dynamic_power = self . dynamic_power_per_normperf . mul_scalar ( performance . 0 ) ; PerfAndPower { performance , power : self . static_power + dynamic_power } }
Estimates the performance and power of this thermal state for the given model of desired
performance.
Estimates the performance and power of this thermal state for the given model of desired performance .
&self
performance_model
PerformanceModel