fn log_raw_temperature(&self, temperature: Celsius) {
        let mut data = self.inner.lock();
        data.temperature_histogram.add_data(temperature.0 as i64);
        if data.temperature_histogram.count() == Self::NUM_TEMPERATURE_READINGS {
            let hist_data = data.temperature_histogram.get_data();
            data.cobalt_sender.log_int_histogram(
                power_metrics_registry::RAW_TEMPERATURE_METRIC_ID,
                (),
                hist_data,
            );
            data.temperature_histogram.clear();
        }
    }
/// Log a raw temperature reading. After `CobaltMetricsImpl::NUM_TEMPERATURE_READINGS` calls, a
/// Cobalt event is dispatched and the local data is cleared.
Log a raw temperature reading. After `CobaltMetricsImpl::NUM_TEMPERATURE_READINGS` calls, a
Cobalt event is dispatched and the local data is cleared.
Log a raw temperature reading . After ` CobaltMetricsImpl :: NUM_TEMPERATURE_READINGS ` calls a Cobalt event is dispatched and the local data is cleared .
fn log_raw_temperature(&self, temperature: Celsius) {
        let mut data = self.inner.lock();
        data.temperature_histogram.add_data(temperature.0 as i64);
        if data.temperature_histogram.count() == Self::NUM_TEMPERATURE_READINGS {
            let hist_data = data.temperature_histogram.get_data();
            data.cobalt_sender.log_int_histogram(
                power_metrics_registry::RAW_TEMPERATURE_METRIC_ID,
                (),
                hist_data,
            );
            data.temperature_histogram.clear();
        }
    }
fn log_raw_temperature ( & self , temperature : Celsius ) { let mut data = self . inner . lock ( ) ; data . temperature_histogram . add_data ( temperature . 0 as i64 ) ; if data . temperature_histogram . count ( ) == Self :: NUM_TEMPERATURE_READINGS { let hist_data = data . temperature_histogram . get_data ( ) ; data . cobalt_sender . log_int_histogram ( power_metrics_registry :: RAW_TEMPERATURE_METRIC_ID , ( ) , hist_data , ) ; data . temperature_histogram . clear ( ) ; } }
Log a raw temperature reading.
Log a raw temperature reading .
&self
temperature
Celsius
&self
temperature
Celsius