Struct tracing_tracy::TracyLayer [−][src]
pub struct TracyLayer { /* fields omitted */ }
Expand description
A tracing layer that collects data in Tracy profiling format.
Implementations
impl TracyLayer
[src]
impl TracyLayer
[src]pub fn with_stackdepth(self, stack_depth: u16) -> Self
[src]
pub fn with_stackdepth(self, stack_depth: u16) -> Self
[src]Specify the maximum number of stack frames that will be collected.
Specifying 0 frames will disable stack trace collection.
Trait Implementations
impl Clone for TracyLayer
[src]
impl Clone for TracyLayer
[src]fn clone(&self) -> TracyLayer
[src]
fn clone(&self) -> TracyLayer
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Default for TracyLayer
[src]
impl Default for TracyLayer
[src]impl<S> Layer<S> for TracyLayer where
S: Subscriber + for<'a> LookupSpan<'a>,
[src]
impl<S> Layer<S> for TracyLayer where
S: Subscriber + for<'a> LookupSpan<'a>,
[src]fn on_enter(&self, id: &Id, ctx: Context<'_, S>)
[src]
fn on_enter(&self, id: &Id, ctx: Context<'_, S>)
[src]Notifies this layer that a span with the given ID was entered.
fn on_exit(&self, id: &Id, _: Context<'_, S>)
[src]
fn on_exit(&self, id: &Id, _: Context<'_, S>)
[src]Notifies this layer that the span with the given ID was exited.
fn on_event(&self, event: &Event<'_>, _: Context<'_, S>)
[src]
fn on_event(&self, event: &Event<'_>, _: Context<'_, S>)
[src]Notifies this layer that an event has occurred.
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
[src]
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
[src]Registers a new callsite with this layer, returning whether or not
the layer is interested in being notified about the callsite, similarly
to Subscriber::register_callsite
. Read more
fn enabled(&self, metadata: &Metadata<'_>, ctx: Context<'_, S>) -> bool
[src]
fn enabled(&self, metadata: &Metadata<'_>, ctx: Context<'_, S>) -> bool
[src]Returns true
if this layer is interested in a span or event with the
given metadata
in the current Context
, similarly to
Subscriber::enabled
. Read more
fn new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)
[src]
fn new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)
[src]Notifies this layer that a new span was constructed with the given
Attributes
and Id
. Read more
fn on_record(&self, _span: &Id, _values: &Record<'_>, _ctx: Context<'_, S>)
[src]
fn on_record(&self, _span: &Id, _values: &Record<'_>, _ctx: Context<'_, S>)
[src]Notifies this layer that a span with the given Id
recorded the given
values
. Read more
fn on_follows_from(&self, _span: &Id, _follows: &Id, _ctx: Context<'_, S>)
[src]
fn on_follows_from(&self, _span: &Id, _follows: &Id, _ctx: Context<'_, S>)
[src]Notifies this layer that a span with the ID span
recorded that it
follows from the span with the ID follows
. Read more
fn on_close(&self, _id: Id, _ctx: Context<'_, S>)
[src]
fn on_close(&self, _id: Id, _ctx: Context<'_, S>)
[src]Notifies this layer that the span with the given ID has been closed.
fn on_id_change(&self, _old: &Id, _new: &Id, _ctx: Context<'_, S>)
[src]
fn on_id_change(&self, _old: &Id, _new: &Id, _ctx: Context<'_, S>)
[src]Notifies this layer that a span ID has been cloned, and that the subscriber returned a different ID. Read more
fn and_then<L>(self, layer: L) -> Layered<L, Self, S> where
L: Layer<S>,
[src]
fn and_then<L>(self, layer: L) -> Layered<L, Self, S> where
L: Layer<S>,
[src]Composes this layer around the given Layer
, returning a Layered
struct implementing Layer
. Read more
fn with_subscriber(self, inner: S) -> Layered<Self, S, S>
[src]
fn with_subscriber(self, inner: S) -> Layered<Self, S, S>
[src]Composes this Layer
with the given Subscriber
, returning a
Layered
struct that implements Subscriber
. Read more
Auto Trait Implementations
impl RefUnwindSafe for TracyLayer
impl Send for TracyLayer
impl Sync for TracyLayer
impl Unpin for TracyLayer
impl UnwindSafe for TracyLayer
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more