Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Well, now it is sure: the format belongs to <strong>ftrace</strong> tool. Android <strong>atrace</strong> is an extension of <strong>ftrace</strong> build to facilitate configuration.</p> <p>The official documentation from <strong>ftrace</strong>, shows that this output format can directly be produced by it in the following way: </p> <pre><code>root@adroid:# echo 1 &gt; /sys/kernel/debug/tracing/events/sched/sched_switch/enable root@adroid:# echo 1 &gt; /sys/kernel/debug/tracing/tracing_on root@adroid:# cat /sys/kernel/debug/tracing/trace &gt; mytracefile.txt root@adroid:# echo 0 &gt; /sys/kernel/debug/tracing/tracing_on root@adroid:# echo 0 &gt; /sys/kernel/debug/tracing/events/sched/sched_switch/enable </code></pre> <p>Official Documentation at: <a href="http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/trace/ftrace.txt" rel="nofollow">http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/trace/ftrace.txt</a></p> <pre><code># cat trace # tracer: nop # # entries-in-buffer/entries-written: 77/77 #P:8 # # _-----=&gt; irqs-off # / _----=&gt; need-resched # | / _---=&gt; hardirq/softirq # || / _--=&gt; preempt-depth # ||| / delay # TASK-PID CPU# |||| TIMESTAMP FUNCTION # | | | |||| | | &lt;idle&gt;-0 [007] d... 2440.707395: sched_switch: prev_comm=swapper/7 prev_pid=0 prev_prio=120 prev_state=R ==&gt; next_comm=snapshot-test-2 next_pid=2243 next_prio=120 snapshot-test-2-2229 [002] d... 2440.707438: sched_switch: prev_comm=snapshot-test-2 prev_pid=2229 prev_prio=120 prev_state=S ==&gt; next_comm=swapper/2 next_pid=0 next_prio=120 [...] </code></pre> <p>Regards,</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload