#[non_exhaustive]pub struct RendererDebug {
pub flags: DebugFlags,
pub profiler_ui: String,
}
Expand description
Webrender renderer debug flags and profiler UI.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.flags: DebugFlags
Debug flags.
profiler_ui: String
Profiler UI rendered when DebugFlags::PROFILER_DBG
is set.
§Syntax
Comma-separated list of tokens with trailing and leading spaces trimmed. Each tokens can be:
- A counter name with an optional prefix. The name corresponds to the displayed name.
- By default (no prefix) the counter is shown as average + max over half a second.
- With a ‘#’ prefix the counter is shown as a graph.
- With a ‘*’ prefix the counter is shown as a change indicator.
- Some special counters such as GPU time queries have specific visualizations ignoring prefixes.
- A preset name to append the preset to the UI.
- An empty token to insert a bit of vertical space.
- A ‘|’ token to start a new column.
- A ‘_’ token to start a new row.
§Preset & Counter Names
"Default"
:"FPS,|,Slow indicators,_,Time graphs,|,Frame times, ,Transaction times, ,Frame stats, ,Memory, ,Interners,_,GPU time queries,_,Paint phase graph"
"Compact"
:"FPS, ,Frame times, ,Frame stats"
See the webrender/src/profiler.rs
file for more details and more counter names.
Implementations§
Source§impl RendererDebug
impl RendererDebug
Trait Implementations§
Source§impl Clone for RendererDebug
impl Clone for RendererDebug
Source§fn clone(&self) -> RendererDebug
fn clone(&self) -> RendererDebug
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 RendererDebug
impl Debug for RendererDebug
Source§impl<'de> Deserialize<'de> for RendererDebug
impl<'de> Deserialize<'de> for RendererDebug
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
Source§impl From<&str> for RendererDebug
impl From<&str> for RendererDebug
Source§impl From<DebugFlags> for RendererDebug
impl From<DebugFlags> for RendererDebug
Source§fn from(flags: DebugFlags) -> Self
fn from(flags: DebugFlags) -> Self
Converts to this type from the input type.
Source§impl From<Txt> for RendererDebug
impl From<Txt> for RendererDebug
Source§impl From<bool> for RendererDebug
impl From<bool> for RendererDebug
Source§impl IntoVar<RendererDebug> for &str
impl IntoVar<RendererDebug> for &str
fn into_var(self) -> Var<RendererDebug>
Source§impl IntoVar<RendererDebug> for DebugFlags
impl IntoVar<RendererDebug> for DebugFlags
fn into_var(self) -> Var<RendererDebug>
Source§impl IntoVar<RendererDebug> for Txt
impl IntoVar<RendererDebug> for Txt
fn into_var(self) -> Var<RendererDebug>
Source§impl IntoVar<RendererDebug> for bool
impl IntoVar<RendererDebug> for bool
fn into_var(self) -> Var<RendererDebug>
Source§impl PartialEq for RendererDebug
impl PartialEq for RendererDebug
Source§impl Serialize for RendererDebug
impl Serialize for RendererDebug
impl Eq for RendererDebug
impl IntoValue<RendererDebug> for &str
impl IntoValue<RendererDebug> for DebugFlags
impl IntoValue<RendererDebug> for Txt
impl IntoValue<RendererDebug> for bool
impl StructuralPartialEq for RendererDebug
Auto Trait Implementations§
impl Freeze for RendererDebug
impl RefUnwindSafe for RendererDebug
impl Send for RendererDebug
impl Sync for RendererDebug
impl Unpin for RendererDebug
impl UnwindSafe for RendererDebug
Blanket Implementations§
Source§impl<T> AnyVarValue for T
impl<T> AnyVarValue for T
Source§fn clone_boxed(&self) -> BoxAnyVarValue
fn clone_boxed(&self) -> BoxAnyVarValue
Clone the value.
Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
Gets if
self
and other
are equal.Source§fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
Swap value with
other
if both are of the same type.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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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 more