Struct servo_config::opts::DebugOptions
source · 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 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§
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> 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