Home
last modified time | relevance | path

Searched refs:tracing (Results 1 – 25 of 137) sorted by relevance

123456

/system/extras/libatrace_rust/
DREADME.md19 Call tracing methods:
41 You're all set! Now you can collect a trace with your favorite tracing tool like
44 ### Using the tracing crate
46 You can use the ATrace layer for the [tracing](https://docs.rs/tracing/latest/tracing/) crate.
51 Add the tracing libraries to your `rustlibs` in `Android.bp`:
63 [Initialize](https://docs.rs/tracing/latest/tracing/index.html#in-executables) the subscriber
64 before calling the tracing methods, usually somewhere in the beginning of `main()`.
77 [layers](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/layer/index.html). In
83 [record spans and events](https://docs.rs/tracing/latest/tracing/index.html#recording-spans-and-eve…
87 #[tracing::instrument]
[all …]
/system/extras/libatrace_rust/benchmark/src/
Dtracing_subscriber_benchmark.rs31 tracing::subscriber::with_default(subscriber, || { in bench_with_subscriber()
41 tracing::subscriber::with_default(subscriber, || { in bench_with_filtering_subscriber()
48 bench_with_subscriber(c, "tracing_off_event", || tracing::info!("bench info event")); in bench_tracing_off_event()
53 bench_with_filtering_subscriber(c, "filtered_event", || tracing::info!("bench info event")); in bench_filtered_event()
60 tracing::info!(debug_arg1 = 123, in bench_tracing_off_event_args()
72 tracing::info!(debug_arg1 = 123, in bench_filtered_event_args()
83 let _entered = tracing::info_span!("bench info span").entered(); in bench_tracing_off_span()
90 let _entered = tracing::info_span!("bench info span").entered(); in bench_filtered_span()
98 let _entered = tracing::info_span!("bench info span", debug_arg1 = 123, in bench_tracing_off_span_args()
110 let _entered = tracing::info_span!("bench info span", debug_arg1 = 123, in bench_filtered_span_args()
[all …]
/system/extras/libatrace_rust/src/
Dtracing_subscriber.rs19 use tracing::span::Attributes;
20 use tracing::span::Record;
21 use tracing::{Event, Id, Subscriber};
79 _metadata: &'static tracing::Metadata<'static>, in register_callsite()
80 ) -> tracing::subscriber::Interest { in register_callsite()
86 tracing::subscriber::Interest::sometimes() in register_callsite()
89 tracing::subscriber::Interest::always() in register_callsite()
96 fn enabled(&self, _metadata: &tracing::Metadata<'_>, _ctx: Context<'_, S>) -> bool { in enabled()
155 field: &'a tracing::field::Field, in on_event()
158 fn record_str(&mut self, field: &tracing::field::Field, value: &str) { in on_event()
[all …]
/system/sepolicy/prebuilts/api/33.0/private/
Dgenfs_contexts181 genfscon debugfs /tracing u:object_r:debugfs_tracing_debug:s0
183 genfscon debugfs /tracing/tracing_on u:object_r:debugfs_tracing:s0
185 genfscon debugfs /tracing/trace u:object_r:debugfs_tracing:s0
187 genfscon debugfs /tracing/per_cpu/cpu u:object_r:debugfs_tracing:s0
190 genfscon debugfs /tracing/instances u:object_r:debugfs_tracing_instances:s0
192 genfscon debugfs /tracing/instances/bootreceiver u:object_r:debugfs_bootreceiver_tracing:s0
194 genfscon debugfs /tracing/instances/mm_events u:object_r:debugfs_mm_events_tracing:s0
196 genfscon debugfs /tracing/instances/wifi u:object_r:debugfs_wifi_tracing:s0
198 genfscon debugfs /tracing/trace_marker u:object_r:debugfs_trace_marker:s0
201 genfscon debugfs /tracing/printk_formats u:object_r:debugfs_tracing_printk_formats:s0
[all …]
/system/sepolicy/prebuilts/api/202404/private/
Dgenfs_contexts186 genfscon debugfs /tracing u:object_r:debugfs_tracing_debug:s0
188 genfscon debugfs /tracing/tracing_on u:object_r:debugfs_tracing:s0
190 genfscon debugfs /tracing/trace u:object_r:debugfs_tracing:s0
192 genfscon debugfs /tracing/per_cpu/cpu u:object_r:debugfs_tracing:s0
195 genfscon debugfs /tracing/hyp u:object_r:debugfs_tracing:s0
198 genfscon debugfs /tracing/instances u:object_r:debugfs_tracing_instances:s0
200 genfscon debugfs /tracing/instances/bootreceiver u:object_r:debugfs_bootreceiver_tracing:s0
202 genfscon debugfs /tracing/instances/mm_events u:object_r:debugfs_mm_events_tracing:s0
204 genfscon debugfs /tracing/instances/wifi u:object_r:debugfs_wifi_tracing:s0
206 genfscon debugfs /tracing/trace_marker u:object_r:debugfs_trace_marker:s0
[all …]
/system/sepolicy/prebuilts/api/32.0/private/
Dgenfs_contexts173 genfscon debugfs /tracing u:object_r:debugfs_tracing_debug:s0
175 genfscon debugfs /tracing/tracing_on u:object_r:debugfs_tracing:s0
177 genfscon debugfs /tracing/trace u:object_r:debugfs_tracing:s0
179 genfscon debugfs /tracing/per_cpu/cpu u:object_r:debugfs_tracing:s0
182 genfscon debugfs /tracing/instances u:object_r:debugfs_tracing_instances:s0
184 genfscon debugfs /tracing/instances/bootreceiver u:object_r:debugfs_bootreceiver_tracing:s0
186 genfscon debugfs /tracing/instances/mm_events u:object_r:debugfs_mm_events_tracing:s0
188 genfscon debugfs /tracing/instances/wifi u:object_r:debugfs_wifi_tracing:s0
190 genfscon debugfs /tracing/trace_marker u:object_r:debugfs_trace_marker:s0
193 genfscon debugfs /tracing/printk_formats u:object_r:debugfs_tracing_printk_formats:s0
[all …]
Dsystem_suspend.te32 -atrace # tracing
37 -traceur_app # tracing
/system/sepolicy/prebuilts/api/31.0/private/
Dgenfs_contexts173 genfscon debugfs /tracing u:object_r:debugfs_tracing_debug:s0
175 genfscon debugfs /tracing/tracing_on u:object_r:debugfs_tracing:s0
177 genfscon debugfs /tracing/trace u:object_r:debugfs_tracing:s0
179 genfscon debugfs /tracing/per_cpu/cpu u:object_r:debugfs_tracing:s0
182 genfscon debugfs /tracing/instances u:object_r:debugfs_tracing_instances:s0
184 genfscon debugfs /tracing/instances/bootreceiver u:object_r:debugfs_bootreceiver_tracing:s0
186 genfscon debugfs /tracing/instances/mm_events u:object_r:debugfs_mm_events_tracing:s0
188 genfscon debugfs /tracing/instances/wifi u:object_r:debugfs_wifi_tracing:s0
190 genfscon debugfs /tracing/trace_marker u:object_r:debugfs_trace_marker:s0
193 genfscon debugfs /tracing/printk_formats u:object_r:debugfs_tracing_printk_formats:s0
[all …]
Dsystem_suspend.te32 -atrace # tracing
37 -traceur_app # tracing
/system/sepolicy/microdroid/system/private/
Dgenfs_contexts176 genfscon debugfs /tracing u:object_r:debugfs_tracing_debug:s0
178 genfscon debugfs /tracing/tracing_on u:object_r:debugfs_tracing:s0
180 genfscon debugfs /tracing/trace u:object_r:debugfs_tracing:s0
182 genfscon debugfs /tracing/per_cpu/cpu u:object_r:debugfs_tracing:s0
185 genfscon debugfs /tracing/instances u:object_r:debugfs_tracing_instances:s0
187 genfscon debugfs /tracing/instances/bootreceiver u:object_r:debugfs_bootreceiver_tracing:s0
189 genfscon debugfs /tracing/instances/mm_events u:object_r:debugfs_mm_events_tracing:s0
191 genfscon debugfs /tracing/instances/wifi u:object_r:debugfs_wifi_tracing:s0
193 genfscon debugfs /tracing/trace_marker u:object_r:debugfs_trace_marker:s0
196 genfscon debugfs /tracing/printk_formats u:object_r:debugfs_tracing_printk_formats:s0
[all …]
/system/sepolicy/prebuilts/api/29.0/private/
Dgenfs_contexts148 genfscon debugfs /tracing u:object_r:debugfs_tracing_debug:s0
150 genfscon debugfs /tracing/tracing_on u:object_r:debugfs_tracing:s0
152 genfscon debugfs /tracing/trace u:object_r:debugfs_tracing:s0
154 genfscon debugfs /tracing/per_cpu/cpu u:object_r:debugfs_tracing:s0
157 genfscon debugfs /tracing/instances u:object_r:debugfs_tracing_instances:s0
159 genfscon debugfs /tracing/instances/wifi u:object_r:debugfs_wifi_tracing:s0
161 genfscon debugfs /tracing/trace_marker u:object_r:debugfs_trace_marker:s0
165 genfscon debugfs /tracing/events/header_page u:object_r:debugfs_tracing:s0
166 genfscon debugfs /tracing/events/f2fs/f2fs_get_data_block/ u:object_r:debugfs_tracing:s0
167 genfscon debugfs /tracing/events/f2fs/f2fs_iget/ u:object_r:debugfs_tracing:s0
[all …]
Dsystem_suspend.te20 -atrace # tracing
24 -traceur_app # tracing
/system/sepolicy/prebuilts/api/34.0/private/
Dgenfs_contexts182 genfscon debugfs /tracing u:object_r:debugfs_tracing_debug:s0
184 genfscon debugfs /tracing/tracing_on u:object_r:debugfs_tracing:s0
186 genfscon debugfs /tracing/trace u:object_r:debugfs_tracing:s0
188 genfscon debugfs /tracing/per_cpu/cpu u:object_r:debugfs_tracing:s0
191 genfscon debugfs /tracing/hyp u:object_r:debugfs_tracing:s0
194 genfscon debugfs /tracing/instances u:object_r:debugfs_tracing_instances:s0
196 genfscon debugfs /tracing/instances/bootreceiver u:object_r:debugfs_bootreceiver_tracing:s0
198 genfscon debugfs /tracing/instances/mm_events u:object_r:debugfs_mm_events_tracing:s0
200 genfscon debugfs /tracing/instances/wifi u:object_r:debugfs_wifi_tracing:s0
202 genfscon debugfs /tracing/trace_marker u:object_r:debugfs_trace_marker:s0
[all …]
/system/sepolicy/prebuilts/api/30.0/private/
Dgenfs_contexts158 genfscon debugfs /tracing u:object_r:debugfs_tracing_debug:s0
160 genfscon debugfs /tracing/tracing_on u:object_r:debugfs_tracing:s0
162 genfscon debugfs /tracing/trace u:object_r:debugfs_tracing:s0
164 genfscon debugfs /tracing/per_cpu/cpu u:object_r:debugfs_tracing:s0
167 genfscon debugfs /tracing/instances u:object_r:debugfs_tracing_instances:s0
169 genfscon debugfs /tracing/instances/wifi u:object_r:debugfs_wifi_tracing:s0
171 genfscon debugfs /tracing/trace_marker u:object_r:debugfs_trace_marker:s0
175 genfscon debugfs /tracing/events/header_page u:object_r:debugfs_tracing:s0
176 genfscon debugfs /tracing/events/f2fs/f2fs_get_data_block/ u:object_r:debugfs_tracing:s0
177 genfscon debugfs /tracing/events/f2fs/f2fs_iget/ u:object_r:debugfs_tracing:s0
[all …]
Dsystem_suspend.te21 -atrace # tracing
25 -traceur_app # tracing
/system/extras/libatrace_rust/benchmark/
DREADME.md15 The benchmarks emit ATrace events with tracing off and tracing on. `atrace_begin` is measured
17 `tracing_on_begin/1000` measures `atrace_begin` with a 1000-character name and tracing enabled.
19 ### 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.
43 The timings are not representative of actual cost of fully enabling tracing, only of emitting
49 *If you notice that measurements with tracing off and tracing on have similar times, it might mean
79 ### ATrace tracing subscriber
81 The tracing subscriber time consists of the underlying `libatrace_rust` call plus the time spent in
/system/extras/tests/mmc_tracepoints/
DREADME2 in the kernel. To turn on mmc tracing, do this:
4 adb shell echo 1 >/d/tracing/events/mmc/enable
5 adb shell echo 1 >/d/tracing/tracing_on
9 adb pull /d/tracing/trace
13 adb shell echo 0 >/d/tracing/tracing_enabled
/system/extras/ANRdaemon/
DREADME3 logging. Trace are configured ahead by setting different modules in /d/tracing.
6 /d/tracing/trace.
11 This means tracing will be enabled above 99.90% CPU utilization and will trace
20 not running. This is because the daemon process turns off tracing when CPU usage
23 when the CPU usage becomes high and the daemon process turn on tracing again,
24 the first entry in /d/tracing/trace logged by sched is switching away from the
/system/sepolicy/private/
Dsystem_suspend_internal_server.te6 -atrace # tracing
10 -traceur_app # tracing
/system/sepolicy/prebuilts/api/33.0/public/
Dsystem_suspend_internal_server.te6 -atrace # tracing
10 -traceur_app # tracing
/system/sepolicy/prebuilts/api/34.0/public/
Dsystem_suspend_internal_server.te6 -atrace # tracing
10 -traceur_app # tracing
/system/sepolicy/prebuilts/api/202404/public/
Dsystem_suspend_internal_server.te6 -atrace # tracing
10 -traceur_app # tracing
/system/sepolicy/prebuilts/api/32.0/public/
Dsystem_suspend_internal_server.te6 -atrace # tracing
10 -traceur_app # tracing
/system/sepolicy/prebuilts/api/31.0/public/
Dsystem_suspend_internal_server.te6 -atrace # tracing
10 -traceur_app # tracing
/system/extras/libatrace_rust/example/src/
Dtracing_subscriber_sample.rs17 use tracing::{debug, error, event, info, span, trace, warn, Level};
22 #[tracing::instrument]

123456