fn log_throttle_start(&self, timestamp: Nanoseconds) {
        let mut data = self.inner.lock();
        debug_assert!(
            data.throttle_start_time.is_none(),
            "throttle_start called before ending previous throttle"
        );

        // Record the new timestamp only if it was previously None
        data.throttle_start_time = data.throttle_start_time.or(Some(timestamp));
    }
/// Log the start of a thermal throttling duration. Since the timestamp is recorded and used to
/// track duration of throttling events, it is invalid to call this function consecutively
/// without first ending the existing throttling duration by calling
/// `log_throttle_end_[mitigated|shutdown]` first. If the invalid scenario is encountered, the
/// function will panic on debug builds or have no effect otherwise.
Log the start of a thermal throttling duration. Since the timestamp is recorded and used to
track duration of throttling events, it is invalid to call this function consecutively
without first ending the existing throttling duration by calling
`log_throttle_end_[mitigated|shutdown]` first. If the invalid scenario is encountered, the
function will panic on debug builds or have no effect otherwise.
Log the start of a thermal throttling duration . Since the timestamp is recorded and used to track duration of throttling events it is invalid to call this function consecutively without first ending the existing throttling duration by calling ` log_throttle_end_ [ mitigated|shutdown ] ` first . If the invalid scenario is encountered the function will panic on debug builds or have no effect otherwise .
fn log_throttle_start(&self, timestamp: Nanoseconds) {
        let mut data = self.inner.lock();
        debug_assert!(
            data.throttle_start_time.is_none(),
            "throttle_start called before ending previous throttle"
        );
        // Record the new timestamp only if it was previously None
        data.throttle_start_time = data.throttle_start_time.or(Some(timestamp));
    }
fn log_throttle_start ( & self , timestamp : Nanoseconds ) { let mut data = self . inner . lock ( ) ; debug_assert ! ( data throttle_start_time is_none ( ) " " ) ; // Record the new timestamp only if it was previously None data . throttle_start_time = data . throttle_start_time . or ( Some ( timestamp ) ) ; }
Log the start of a thermal throttling duration.
Log the start of a thermal throttling duration .
&self
timestamp
Nanoseconds
&self
timestamp
Nanoseconds