pub fn binding_resource(bounds: &[ResourceBound]) -> Option<&ResourceBound>Expand description
The roofline convention this module uses throughout: a run cannot finish
faster than its slowest resource allows even under perfect overlap
between them, so that resource is the one binding the achievable
duration, whatever the others manage. binding_achieved applies the
same reduction to a run’s actually measured rates.
The resource requiring the most time even at its own peak: the entry with
the largest ResourceBound::time_at_peak.
None if every entry’s time_at_peak is None, or bounds is empty.