pub struct DebugOptions {
Show 25 fields pub help: bool, pub bubble_inline_sizes_separately: bool, pub disable_text_antialiasing: bool, pub disable_subpixel_text_antialiasing: bool, pub disable_canvas_antialiasing: 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 dump_display_list_json: bool, pub relayout_event: bool, pub profile_script_events: bool, pub show_fragment_borders: bool, pub show_parallel_layout: 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 load_webfonts_synchronously: bool, pub webrender_stats: bool, pub precache_shaders: 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.

§bubble_inline_sizes_separately: bool

True if we should bubble intrinsic widths sequentially. If this is true, then intrinsic widths are computed as a separate pass instead of during flow construction. You may wish to turn this flag on in order to benchmark style recalculation against other browser engines.

§disable_text_antialiasing: bool

If set with disable-text-aa, disable antialiasing on fonts. This is primarily useful for reftests where pixel perfect results are required when using fonts such as the Ahem font for layout tests.

§disable_subpixel_text_antialiasing: bool

Disable subpixel antialiasing of rendered text.

§disable_canvas_antialiasing: bool

Disable antialiasing of rendered text on the HTML canvas element. If set with disable-canvas-aa, disable antialiasing on the HTML canvas element. Like disable-text-aa, this is useful for reftests where pixel perfect results are required.

§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.

§dump_display_list_json: bool

Print the display list in JSON form.

§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.

§show_fragment_borders: bool

Paint borders along fragment boundaries.

§show_parallel_layout: bool

Mark which thread laid each flow out with colors.

§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_share_style_cache: bool

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.

§load_webfonts_synchronously: bool

Load web fonts synchronously to avoid non-deterministic network-driven reflows.

§webrender_stats: bool

Show webrender profiling stats on screen.

§precache_shaders: bool

True to compile all webrender shaders at init time. This is mostly useful when modifying the shaders, to ensure they all compile after each change is made.

§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§

source§

impl DebugOptions

source

pub fn extend(&mut self, debug_string: String) -> Result<(), String>

source

fn print_usage(app: &str)

Trait Implementations§

source§

impl Clone for DebugOptions

source§

fn clone(&self) -> DebugOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DebugOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DebugOptions

source§

fn default() -> DebugOptions

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for DebugOptions

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for DebugOptions

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,