Home
last modified time | relevance | path

Searched refs:subscriber (Results 1 – 4 of 4) sorted by relevance

/system/extras/libatrace_rust/
DREADME.md63 [Initialize](https://docs.rs/tracing/latest/tracing/index.html#in-executables) the subscriber
67 // Initialize the subscriber, panic if it fails.
73 The subscriber defaults to `AtraceTag::App`. Use other tags by creating the subscriber with
76 You can combine the subscriber with other
77 [layers](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/layer/index.html). In
104 [tracing-subscriber](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/index.html)
119 ### Tracing subscriber
121 The subscriber uses the bindings and adds its own overhead that depends on usage:
123 * With tracing disabled and subscriber created `with_filter`, events cost around 30 ns. Not using
/system/extras/libatrace_rust/benchmark/src/
Dtracing_subscriber_benchmark.rs30 let subscriber = tracing_subscriber::registry().with(AtraceSubscriber::default()); in bench_with_subscriber() localVariable
31 tracing::subscriber::with_default(subscriber, || { in bench_with_subscriber()
40 let subscriber = tracing_subscriber::registry().with(AtraceSubscriber::default().with_filter()); in bench_with_filtering_subscriber() localVariable
41 tracing::subscriber::with_default(subscriber, || { in bench_with_filtering_subscriber()
/system/extras/libatrace_rust/benchmark/
DREADME.md19 ### ATrace tracing subscriber benchmark
21 There is a benchmark for the tracing crate subscriber - `libatrace_tracing_subscriber_benchmark`.
24 Similarly to the wrapper benchmarks, the subscriber is measured with tracing off and on. There are
26 `filtered_` measure the subscriber in filtering mode with tracing disabled.
79 ### ATrace tracing subscriber
81 The tracing subscriber time consists of the underlying `libatrace_rust` call plus the time spent in
82 the subscriber itself.
/system/extras/libatrace_rust/src/
Dtracing_subscriber.rs80 ) -> tracing::subscriber::Interest { in register_callsite()
86 tracing::subscriber::Interest::sometimes() in register_callsite()
89 tracing::subscriber::Interest::always() in register_callsite()
361 let _subscriber_guard = tracing::subscriber::set_default( in emits_span_begin()
393 let _subscriber_guard = tracing::subscriber::set_default( in emits_span_end()
446 let _subscriber_guard = tracing::subscriber::set_default( in span_begin_end_is_ordered()
481 let _subscriber_guard = tracing::subscriber::set_default( in emits_instant_event()
512 let _subscriber_guard = tracing::subscriber::set_default( in formats_event_without_message_with_fields_disabled()
543 let _subscriber_guard = tracing::subscriber::set_default( in formats_event_without_message_with_fields_enabled()
588 let _subscriber_guard = tracing::subscriber::set_default( in can_set_tag()
[all …]