pub enum DiagnosticsLoggingOption {
StyleTree,
RuleTree,
FlowTree,
StackingContextTree,
ScrollTree,
DisplayList,
RelayoutEvent,
ProfileScriptEvents,
StyleStatistics,
GcProfile,
ProgressiveWebMetrics,
}Expand description
The set of diagnostic options that can be enabled in Servo.
Variants§
StyleTree
Log the DOM after each restyle
RuleTree
Log the rule tree
FlowTree
Log the fragment tree after each layout
StackingContextTree
Log the stacking context tree after each layout
ScrollTree
Log the scroll tree (the hierarchy of scrollable areas) after each layout
DisplayList
Log the display list after each layout
RelayoutEvent
Log notifications when a relayout occurs
ProfileScriptEvents
Periodically log on which events script threads spend their processing time
StyleStatistics
Log the the hit/miss statistics for the style sharing cache after each restyle
GcProfile
Log garbage collection passes and their durations
ProgressiveWebMetrics
Log Progressive Web Metrics
Implementations§
Source§impl DiagnosticsLoggingOption
impl DiagnosticsLoggingOption
Sourcepub fn help_option(&self) -> &str
pub fn help_option(&self) -> &str
Returns a string representation of this variant that is compatible with
FromStr::from_str and DiagnosticsLogging::extend_from_string.
This value can be used as a command-line argument for an application.
Sourcepub fn help_message(&self) -> &str
pub fn help_message(&self) -> &str
Returns a string with a short description of the diagnostic option. This value can be used as a command-line argument description for an application.
Sourcepub fn iter() -> impl Iterator<Item = DiagnosticsLoggingOption>
pub fn iter() -> impl Iterator<Item = DiagnosticsLoggingOption>
Returns an Iterator that can be used to iterate over all the diagnostic options
supported by Servo. This is useful when constructing a help message that enumerates
all possible diagnostic flags and their respective help messages.
Trait Implementations§
Source§impl AsRef<str> for DiagnosticsLoggingOption
impl AsRef<str> for DiagnosticsLoggingOption
Source§impl Clone for DiagnosticsLoggingOption
impl Clone for DiagnosticsLoggingOption
Source§fn clone(&self) -> DiagnosticsLoggingOption
fn clone(&self) -> DiagnosticsLoggingOption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DiagnosticsLoggingOption
impl Debug for DiagnosticsLoggingOption
Source§impl Display for DiagnosticsLoggingOption
impl Display for DiagnosticsLoggingOption
Source§impl EnumMessage for DiagnosticsLoggingOption
impl EnumMessage for DiagnosticsLoggingOption
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
Source§fn get_documentation(&self) -> Option<&'static str>
fn get_documentation(&self) -> Option<&'static str>
fn get_serializations(&self) -> &'static [&'static str]
Source§impl FromStr for DiagnosticsLoggingOption
impl FromStr for DiagnosticsLoggingOption
Source§type Err = ParseError
type Err = ParseError
Source§fn from_str(
s: &str,
) -> Result<DiagnosticsLoggingOption, <DiagnosticsLoggingOption as FromStr>::Err>
fn from_str( s: &str, ) -> Result<DiagnosticsLoggingOption, <DiagnosticsLoggingOption as FromStr>::Err>
s to return a value of this type. Read moreSource§impl PartialEq for DiagnosticsLoggingOption
impl PartialEq for DiagnosticsLoggingOption
Source§impl TryFrom<&str> for DiagnosticsLoggingOption
impl TryFrom<&str> for DiagnosticsLoggingOption
Source§type Error = ParseError
type Error = ParseError
Source§fn try_from(
s: &str,
) -> Result<DiagnosticsLoggingOption, <DiagnosticsLoggingOption as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<DiagnosticsLoggingOption, <DiagnosticsLoggingOption as TryFrom<&str>>::Error>
impl Copy for DiagnosticsLoggingOption
impl StructuralPartialEq for DiagnosticsLoggingOption
Auto Trait Implementations§
impl Freeze for DiagnosticsLoggingOption
impl RefUnwindSafe for DiagnosticsLoggingOption
impl Send for DiagnosticsLoggingOption
impl Sync for DiagnosticsLoggingOption
impl Unpin for DiagnosticsLoggingOption
impl UnsafeUnpin for DiagnosticsLoggingOption
impl UnwindSafe for DiagnosticsLoggingOption
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§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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