Skip to content

Print Durations

Michael Sartain edited this page Oct 3, 2017 · 1 revision

Print Durations

  • Allow timelines bars to be draw for debugfs ftrace print markers
  • Use "duration=", "begin_ctx=", "end_ctx=" markups in print events
  • Examples:
tracing_mark_write: thread_1: [#1 pid=7159 tid=7170] sleeping for 0.10 seconds (duration=100.00ms)
tracing_mark_write: thread_main: [#-1 pid=7159 tid=7159] Waiting for thread #4 (begin_ctx=4)
tracing_mark_write: thread_main: [#-1 pid=7159 tid=7159] Thread #4 rc=0 status=7173 (end_ctx=4)

Graph for the above examples:

https://raw.githubusercontent.com/wiki/mikesart/gpuvis/images/print_durations.jpg

Clone this wiki locally