pub struct DebugOptions {
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_scroll_tree: bool,
pub dump_display_list: bool,
pub relayout_event: bool,
pub profile_script_events: bool,
pub disable_share_style_cache: bool,
pub dump_style_statistics: bool,
pub gc_profile: bool,
}Expand description
Debug options for Servo, currently set on the command line with -Z
Fields§
§help: boolList all the debug options.
dump_style_tree: boolPrint the DOM after each restyle.
dump_rule_tree: boolDumps the rule tree.
dump_flow_tree: boolPrint the fragment tree after each layout.
dump_stacking_context_tree: boolPrint the stacking context tree after each layout.
dump_scroll_tree: boolPrint the scroll tree after each layout.
dump_display_list: boolPrint the display list after each layout.
relayout_event: boolPrint notifications when there is a relayout.
profile_script_events: boolPeriodically print out on which events script threads spend their processing time.
Disable the style sharing cache.
dump_style_statistics: boolWhether to show in stdout style sharing cache stats after a restyle.
gc_profile: boolLog GC passes and their durations.
Implementations§
Trait Implementations§
Source§impl Clone for DebugOptions
impl Clone for DebugOptions
Source§fn clone(&self) -> DebugOptions
fn clone(&self) -> DebugOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert