pub struct ChromeFrameReporter {Show 16 fields
pub state: Option<i32>,
pub reason: Option<i32>,
pub frame_source: Option<u64>,
pub frame_sequence: Option<u64>,
pub affects_smoothness: Option<bool>,
pub scroll_state: Option<i32>,
pub has_main_animation: Option<bool>,
pub has_compositor_animation: Option<bool>,
pub has_smooth_input_main: Option<bool>,
pub has_missing_content: Option<bool>,
pub layer_tree_host_id: Option<u64>,
pub has_high_latency: Option<bool>,
pub frame_type: Option<i32>,
pub high_latency_contribution_stage: Vec<String>,
pub checkerboarded_needs_raster: Option<bool>,
pub checkerboarded_needs_record: Option<bool>,
}
Fields§
§state: Option<i32>
§reason: Option<i32>
The reason is set only if |state| is not |STATE_UPDATED_ALL|.
frame_source: Option<u64>
§frame_sequence: Option<u64>
§affects_smoothness: Option<bool>
If this is a droped frame (i.e. if |state| is set to |STATE_DROPPED| or |STATE_PRESENTED_PARTIAL|), then indicates whether this frame impacts smoothness.
scroll_state: Option<i32>
The type of active scroll.
has_main_animation: Option<bool>
If any main thread animation is active during this frame.
has_compositor_animation: Option<bool>
If any compositor thread animation is active during this frame.
has_smooth_input_main: Option<bool>
If any touch-driven UX (not scroll) is active during this frame.
has_missing_content: Option<bool>
Whether the frame contained any missing content (i.e. whether there was checkerboarding in the frame). If has_missing_content, checkerboarded_needs_raster and checkerboarded_needs_record all have values, has_missing_content should equal checkerboarded_needs_raster || checkerboarded_needs_record.
layer_tree_host_id: Option<u64>
The id of layer_tree_host that the frame has been produced for.
has_high_latency: Option<bool>
If total latency of PipelineReporter exceeds a certain limit.
frame_type: Option<i32>
Indicate if the frame is “FORKED” (i.e. a PipelineReporter event starts at the same frame sequence as another PipelineReporter) or “BACKFILL” (i.e. dropped frames when there are no partial compositor updates).
high_latency_contribution_stage: Vec<String>
The breakdown stage of PipelineReporter that is most likely accountable for high latency.
checkerboarded_needs_raster: Option<bool>
Whether the frame contained any content that is not fully rastered.
checkerboarded_needs_record: Option<bool>
Whether the frame contained any content that is not fully recorded.
Implementations§
Source§impl ChromeFrameReporter
impl ChromeFrameReporter
Sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn reason(&self) -> FrameDropReason
pub fn reason(&self) -> FrameDropReason
Returns the enum value of reason
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_reason(&mut self, value: FrameDropReason)
pub fn set_reason(&mut self, value: FrameDropReason)
Sets reason
to the provided enum value.
Sourcepub fn frame_source(&self) -> u64
pub fn frame_source(&self) -> u64
Returns the value of frame_source
, or the default value if frame_source
is unset.
Sourcepub fn frame_sequence(&self) -> u64
pub fn frame_sequence(&self) -> u64
Returns the value of frame_sequence
, or the default value if frame_sequence
is unset.
Sourcepub fn affects_smoothness(&self) -> bool
pub fn affects_smoothness(&self) -> bool
Returns the value of affects_smoothness
, or the default value if affects_smoothness
is unset.
Sourcepub fn scroll_state(&self) -> ScrollState
pub fn scroll_state(&self) -> ScrollState
Returns the enum value of scroll_state
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_scroll_state(&mut self, value: ScrollState)
pub fn set_scroll_state(&mut self, value: ScrollState)
Sets scroll_state
to the provided enum value.
Sourcepub fn has_main_animation(&self) -> bool
pub fn has_main_animation(&self) -> bool
Returns the value of has_main_animation
, or the default value if has_main_animation
is unset.
Sourcepub fn has_compositor_animation(&self) -> bool
pub fn has_compositor_animation(&self) -> bool
Returns the value of has_compositor_animation
, or the default value if has_compositor_animation
is unset.
Sourcepub fn has_smooth_input_main(&self) -> bool
pub fn has_smooth_input_main(&self) -> bool
Returns the value of has_smooth_input_main
, or the default value if has_smooth_input_main
is unset.
Sourcepub fn has_missing_content(&self) -> bool
pub fn has_missing_content(&self) -> bool
Returns the value of has_missing_content
, or the default value if has_missing_content
is unset.
Sourcepub fn layer_tree_host_id(&self) -> u64
pub fn layer_tree_host_id(&self) -> u64
Returns the value of layer_tree_host_id
, or the default value if layer_tree_host_id
is unset.
Sourcepub fn has_high_latency(&self) -> bool
pub fn has_high_latency(&self) -> bool
Returns the value of has_high_latency
, or the default value if has_high_latency
is unset.
Sourcepub fn frame_type(&self) -> FrameType
pub fn frame_type(&self) -> FrameType
Returns the enum value of frame_type
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_frame_type(&mut self, value: FrameType)
pub fn set_frame_type(&mut self, value: FrameType)
Sets frame_type
to the provided enum value.
Sourcepub fn checkerboarded_needs_raster(&self) -> bool
pub fn checkerboarded_needs_raster(&self) -> bool
Returns the value of checkerboarded_needs_raster
, or the default value if checkerboarded_needs_raster
is unset.
Sourcepub fn checkerboarded_needs_record(&self) -> bool
pub fn checkerboarded_needs_record(&self) -> bool
Returns the value of checkerboarded_needs_record
, or the default value if checkerboarded_needs_record
is unset.
Trait Implementations§
Source§impl Clone for ChromeFrameReporter
impl Clone for ChromeFrameReporter
Source§fn clone(&self) -> ChromeFrameReporter
fn clone(&self) -> ChromeFrameReporter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ChromeFrameReporter
impl Debug for ChromeFrameReporter
Source§impl Default for ChromeFrameReporter
impl Default for ChromeFrameReporter
Source§impl Message for ChromeFrameReporter
impl Message for ChromeFrameReporter
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.