pub struct SubmissionReport {
pub gpu_ms: f64,
pub measured: bool,
pub submissions: u32,
pub frame: Option<FrameMark>,
pub effects: Vec<String>,
pub predicted_ms: Option<f64>,
}Expand description
The recent submission, or group of submissions completed together, that kept the GPU busy longest, and what it rendered.
Fields§
§gpu_ms: f64GPU time in milliseconds of all submissions together; for one still running, the time so
far.
measured: boolWhether gpu_ms is measured: its start and its last completion were each seen as they
happened. Otherwise a completion was seen late and gpu_ms is an upper bound.
submissions: u32Submissions whose completions were seen together, so only their total is known; 1 for a submission timed on its own.
frame: Option<FrameMark>The frame the first of them rendered, when the caller marked one.
effects: Vec<String>The effects they ran, as id@version.
predicted_ms: Option<f64>Their predicted GPU time in milliseconds, when their frames were planned.
Implementations§
Source§impl SubmissionReport
impl SubmissionReport
Sourcepub fn hung_error(&self) -> RenderError
pub fn hung_error(&self) -> RenderError
The crate::RenderError::GpuDeviceHung this report makes of a device loss.
Trait Implementations§
Source§impl Clone for SubmissionReport
impl Clone for SubmissionReport
Source§impl Debug for SubmissionReport
impl Debug for SubmissionReport
Source§impl PartialEq for SubmissionReport
impl PartialEq for SubmissionReport
impl StructuralPartialEq for SubmissionReport
Auto Trait Implementations§
impl Forget for SubmissionReport
impl Freeze for SubmissionReport
impl Move for SubmissionReport
impl RefUnwindSafe for SubmissionReport
impl Send for SubmissionReport
impl Sync for SubmissionReport
impl Unpin for SubmissionReport
impl UnsafeUnpin for SubmissionReport
impl UnwindSafe for SubmissionReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more