mirror of
https://github.com/servo/servo.git
synced 2025-09-20 03:40:09 +01:00
servoshell: Update the debug options (-Z
) help to reflect current set of options (#39316)
The command-line help output for `-Z` and `DebugOptions were out of sync again. This change makes sure they match again. Testing: No tests necessary as this mainly just updates the help output. Fixes: #39311 Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
parent
07c3f32947
commit
76645e5e26
2 changed files with 2 additions and 22 deletions
|
@ -151,12 +151,12 @@ impl DebugOptions {
|
||||||
"dump-flow-tree" => self.dump_flow_tree = true,
|
"dump-flow-tree" => self.dump_flow_tree = true,
|
||||||
"dump-rule-tree" => self.dump_rule_tree = true,
|
"dump-rule-tree" => self.dump_rule_tree = true,
|
||||||
"dump-style-tree" => self.dump_style_tree = true,
|
"dump-style-tree" => self.dump_style_tree = true,
|
||||||
|
"dump-style-stats" => self.dump_style_statistics = true,
|
||||||
"dump-scroll-tree" => self.dump_scroll_tree = true,
|
"dump-scroll-tree" => self.dump_scroll_tree = true,
|
||||||
"gc-profile" => self.gc_profile = true,
|
"gc-profile" => self.gc_profile = true,
|
||||||
"profile-script-events" => self.profile_script_events = true,
|
"profile-script-events" => self.profile_script_events = true,
|
||||||
"relayout-event" => self.relayout_event = true,
|
"relayout-event" => self.relayout_event = true,
|
||||||
"signpost" => self.signpost = true,
|
"signpost" => self.signpost = true,
|
||||||
"dump-style-stats" => self.dump_style_statistics = true,
|
|
||||||
"" => {},
|
"" => {},
|
||||||
_ => return Err(String::from(option)),
|
_ => return Err(String::from(option)),
|
||||||
};
|
};
|
||||||
|
|
|
@ -730,11 +730,6 @@ fn print_debug_options_usage(app: &str) {
|
||||||
"Usage: {} debug option,[options,...]\n\twhere options include\n\nOptions:",
|
"Usage: {} debug option,[options,...]\n\twhere options include\n\nOptions:",
|
||||||
app
|
app
|
||||||
);
|
);
|
||||||
|
|
||||||
print_option(
|
|
||||||
"bubble-inline-sizes-separately",
|
|
||||||
"Bubble intrinsic widths separately like other engines.",
|
|
||||||
);
|
|
||||||
print_option(
|
print_option(
|
||||||
"convert-mouse-to-touch",
|
"convert-mouse-to-touch",
|
||||||
"Send touch events instead of mouse events",
|
"Send touch events instead of mouse events",
|
||||||
|
@ -751,10 +746,6 @@ fn print_debug_options_usage(app: &str) {
|
||||||
"dump-display-list",
|
"dump-display-list",
|
||||||
"Print the display list after each layout.",
|
"Print the display list after each layout.",
|
||||||
);
|
);
|
||||||
print_option(
|
|
||||||
"dump-display-list-json",
|
|
||||||
"Print the display list in JSON form.",
|
|
||||||
);
|
|
||||||
print_option(
|
print_option(
|
||||||
"dump-flow-tree",
|
"dump-flow-tree",
|
||||||
"Print the fragment tree after each layout.",
|
"Print the fragment tree after each layout.",
|
||||||
|
@ -768,11 +759,8 @@ fn print_debug_options_usage(app: &str) {
|
||||||
"Print the DOM with computed styles after each restyle.",
|
"Print the DOM with computed styles after each restyle.",
|
||||||
);
|
);
|
||||||
print_option("dump-style-stats", "Print style statistics each restyle.");
|
print_option("dump-style-stats", "Print style statistics each restyle.");
|
||||||
|
print_option("dump-scroll-tree", "Print scroll tree after each layout.");
|
||||||
print_option("gc-profile", "Log GC passes and their durations.");
|
print_option("gc-profile", "Log GC passes and their durations.");
|
||||||
print_option(
|
|
||||||
"parallel-display-list-building",
|
|
||||||
"Build display lists in parallel.",
|
|
||||||
);
|
|
||||||
print_option(
|
print_option(
|
||||||
"profile-script-events",
|
"profile-script-events",
|
||||||
"Enable profiling of script-related events.",
|
"Enable profiling of script-related events.",
|
||||||
|
@ -781,14 +769,6 @@ fn print_debug_options_usage(app: &str) {
|
||||||
"relayout-event",
|
"relayout-event",
|
||||||
"Print notifications when there is a relayout.",
|
"Print notifications when there is a relayout.",
|
||||||
);
|
);
|
||||||
print_option(
|
|
||||||
"show-fragment-borders",
|
|
||||||
"Paint borders along fragment boundaries.",
|
|
||||||
);
|
|
||||||
print_option(
|
|
||||||
"show-parallel-layout",
|
|
||||||
"Mark which thread laid each flow out with colors.",
|
|
||||||
);
|
|
||||||
print_option(
|
print_option(
|
||||||
"signpost",
|
"signpost",
|
||||||
"Emit native OS signposts for profile events (currently macOS only)",
|
"Emit native OS signposts for profile events (currently macOS only)",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue