async fn iterate_controller(
        &self,
        filtered_temperature: Celsius,
        time_delta: Seconds,
    ) -> Result<(), Error> {
        fuchsia_trace::duration!(
            "power_manager",
            "ThermalPolicy::iterate_controller",
            "filtered_temperature" => filtered_temperature.0,
            "time_delta" => time_delta.0
        );
        let available_power = self.calculate_available_power(filtered_temperature, time_delta);
        self.inspect.throttle_history().record_available_power(available_power);
        fuchsia_trace::counter!(
            "power_manager",
            "ThermalPolicy available_power",
            0,
            "available_power" => available_power.0
        );

        self.distribute_power(available_power).await
    }
/// Execute the thermal feedback control loop
Execute the thermal feedback control loop
Execute the thermal feedback control loop
async fn iterate_controller(
        &self,
        filtered_temperature: Celsius,
        time_delta: Seconds,
    ) -> Result<(), Error> {
        fuchsia_trace::duration!(
            "power_manager",
            "ThermalPolicy::iterate_controller",
            "filtered_temperature" => filtered_temperature.0,
            "time_delta" => time_delta.0
        );
        let available_power = self.calculate_available_power(filtered_temperature, time_delta);
        self.inspect.throttle_history().record_available_power(available_power);
        fuchsia_trace::counter!(
            "power_manager",
            "ThermalPolicy available_power",
            0,
            "available_power" => available_power.0
        );
        self.distribute_power(available_power).await
    }
async fn iterate_controller ( & self , filtered_temperature : Celsius , time_delta : Seconds , ) -> Result < ( ) , Error > { fuchsia_trace :: duration ! ( " " " " " " filtered_temperature 0 " " time_delta 0 ) ; let available_power = self . calculate_available_power ( filtered_temperature , time_delta ) ; self . inspect . throttle_history ( ) . record_available_power ( available_power ) ; fuchsia_trace :: counter ! ( " " " " 0 " " available_power 0 ) ; self . distribute_power ( available_power ) . await }
Execute the thermal feedback control loop
Execute the thermal feedback control loop
&self
filtered_temperature
Celsius
time_delta
Seconds
&self
filtered_temperature
Celsius
time_delta
Seconds