pub struct ActualDisplayFrameStart {Show 13 fields
pub cookie: Option<i64>,
pub token: Option<i64>,
pub pid: Option<i32>,
pub present_type: Option<i32>,
pub on_time_finish: Option<bool>,
pub gpu_composition: Option<bool>,
pub jank_type: Option<i32>,
pub prediction_type: Option<i32>,
pub jank_severity_type: Option<i32>,
pub present_delay_millis: Option<f32>,
pub jank_severity_score: Option<f32>,
pub jank_type_experimental: Option<i32>,
pub present_type_experimental: Option<i32>,
}Expand description
Indicates the start of actual timeline slice for DisplayFrames. Also includes the jank information.
Fields§
Cookie used to correlate between the start and end messages of the same frame. Since all values except the ts are same for start and end, cookie helps in preventing redundant data transmission. The same cookie is used only by start and end messages of a single frame and is otherwise unique.
token: Option<i64>Token received by SurfaceFlinger for its work this.token = SurfaceFrame.display_frame_token
pid: Option<i32>Pid of SurfaceFlinger. Used in creating the timeline tracks (and slices) inside the SurfaceFlinger process group.
present_type: Option<i32>§on_time_finish: Option<bool>§gpu_composition: Option<bool>§jank_type: Option<i32>A bitmask of JankType. More than one reason can be attributed to a janky frame.
prediction_type: Option<i32>§jank_severity_type: Option<i32>§present_delay_millis: Option<f32>§jank_severity_score: Option<f32>§jank_type_experimental: Option<i32>experimental value for jank_type. Do not consider in jank analysis.
present_type_experimental: Option<i32>experimental value for present_type. Do not consider in jank analysis.
Implementations§
Source§impl ActualDisplayFrameStart
impl ActualDisplayFrameStart
Returns the value of cookie, or the default value if cookie is unset.
Sourcepub fn present_type(&self) -> PresentType
pub fn present_type(&self) -> PresentType
Returns the enum value of present_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_present_type(&mut self, value: PresentType)
pub fn set_present_type(&mut self, value: PresentType)
Sets present_type to the provided enum value.
Sourcepub fn on_time_finish(&self) -> bool
pub fn on_time_finish(&self) -> bool
Returns the value of on_time_finish, or the default value if on_time_finish is unset.
Sourcepub fn gpu_composition(&self) -> bool
pub fn gpu_composition(&self) -> bool
Returns the value of gpu_composition, or the default value if gpu_composition is unset.
Sourcepub fn jank_type(&self) -> i32
pub fn jank_type(&self) -> i32
Returns the value of jank_type, or the default value if jank_type is unset.
Sourcepub fn prediction_type(&self) -> PredictionType
pub fn prediction_type(&self) -> PredictionType
Returns the enum value of prediction_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_prediction_type(&mut self, value: PredictionType)
pub fn set_prediction_type(&mut self, value: PredictionType)
Sets prediction_type to the provided enum value.
Sourcepub fn jank_severity_type(&self) -> JankSeverityType
pub fn jank_severity_type(&self) -> JankSeverityType
Returns the enum value of jank_severity_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_jank_severity_type(&mut self, value: JankSeverityType)
pub fn set_jank_severity_type(&mut self, value: JankSeverityType)
Sets jank_severity_type to the provided enum value.
Sourcepub fn present_delay_millis(&self) -> f32
pub fn present_delay_millis(&self) -> f32
Returns the value of present_delay_millis, or the default value if present_delay_millis is unset.
Sourcepub fn jank_severity_score(&self) -> f32
pub fn jank_severity_score(&self) -> f32
Returns the value of jank_severity_score, or the default value if jank_severity_score is unset.
Sourcepub fn jank_type_experimental(&self) -> i32
pub fn jank_type_experimental(&self) -> i32
Returns the value of jank_type_experimental, or the default value if jank_type_experimental is unset.
Sourcepub fn present_type_experimental(&self) -> PresentType
pub fn present_type_experimental(&self) -> PresentType
Returns the enum value of present_type_experimental, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_present_type_experimental(&mut self, value: PresentType)
pub fn set_present_type_experimental(&mut self, value: PresentType)
Sets present_type_experimental to the provided enum value.
Trait Implementations§
Source§impl Clone for ActualDisplayFrameStart
impl Clone for ActualDisplayFrameStart
Source§fn clone(&self) -> ActualDisplayFrameStart
fn clone(&self) -> ActualDisplayFrameStart
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ActualDisplayFrameStart
impl Debug for ActualDisplayFrameStart
Source§impl Default for ActualDisplayFrameStart
impl Default for ActualDisplayFrameStart
Source§impl Message for ActualDisplayFrameStart
impl Message for ActualDisplayFrameStart
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.