pub struct DebugOptions {Show 16 fields
pub help: bool,
pub dump_style_tree: bool,
pub dump_rule_tree: bool,
pub dump_flow_tree: bool,
pub dump_stacking_context_tree: bool,
pub dump_display_list: bool,
pub relayout_event: bool,
pub profile_script_events: bool,
pub trace_layout: bool,
pub disable_share_style_cache: bool,
pub dump_style_statistics: bool,
pub convert_mouse_to_touch: bool,
pub replace_surrogates: bool,
pub gc_profile: bool,
pub webrender_stats: bool,
pub signpost: bool,
}
Expand description
Debug options for Servo, currently set on the command line with -Z
Fields§
§help: bool
List all the debug options.
dump_style_tree: bool
Print the DOM after each restyle.
dump_rule_tree: bool
Dumps the rule tree.
dump_flow_tree: bool
Print the flow tree (Layout 2013) or fragment tree (Layout 2020) after each layout.
dump_stacking_context_tree: bool
Print the stacking context tree after each layout.
dump_display_list: bool
Print the display list after each layout.
relayout_event: bool
Print notifications when there is a relayout.
profile_script_events: bool
Periodically print out on which events script threads spend their processing time.
trace_layout: bool
True if each step of layout is traced to an external JSON file for debugging purposes. Setting this implies sequential layout and paint.
Disable the style sharing cache.
dump_style_statistics: bool
Whether to show in stdout style sharing cache stats after a restyle.
convert_mouse_to_touch: bool
Translate mouse input into touch events.
replace_surrogates: bool
Replace unpaires surrogates in DOM strings with U+FFFD. See https://github.com/servo/servo/issues/6564
gc_profile: bool
Log GC passes and their durations.
webrender_stats: bool
Show webrender profiling stats on screen.
signpost: bool
True to use OS native signposting facilities. This makes profiling events (script activity, reflow, compositing, etc.) appear in Instruments.app on macOS.
Implementations§
Trait Implementations§
source§impl Clone for DebugOptions
impl Clone for DebugOptions
source§fn clone(&self) -> DebugOptions
fn clone(&self) -> DebugOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DebugOptions
impl Debug for DebugOptions
source§impl Default for DebugOptions
impl Default for DebugOptions
source§fn default() -> DebugOptions
fn default() -> DebugOptions
source§impl<'de> Deserialize<'de> for DebugOptions
impl<'de> Deserialize<'de> for DebugOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for DebugOptions
impl RefUnwindSafe for DebugOptions
impl Send for DebugOptions
impl Sync for DebugOptions
impl Unpin for DebugOptions
impl UnwindSafe for DebugOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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