pub struct RendererDebug {
pub flags: DebugFlags,
pub profiler_ui: String,
}
Expand description
Webrender renderer debug flags and profiler UI.
Fields§
§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 copy 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
source§impl IntoVar<RendererDebug> for DebugFlags
impl IntoVar<RendererDebug> for DebugFlags
source§impl IntoVar<RendererDebug> for Txt
impl IntoVar<RendererDebug> for Txt
source§impl IntoVar<RendererDebug> for bool
impl IntoVar<RendererDebug> for bool
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 Twhere
T: VarValue,
impl<T> AnyVarValue for Twhere
T: VarValue,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Access to mut
dyn Any
methods.source§fn clone_boxed(&self) -> Box<dyn AnyVarValue>
fn clone_boxed(&self) -> Box<dyn AnyVarValue>
Clone the value.
source§fn clone_boxed_var(&self) -> Box<dyn AnyVar>
fn clone_boxed_var(&self) -> Box<dyn AnyVar>
Clone the value into a new boxed
LocalVar<Self>
.source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
Gets if
self
equals other
.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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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