linux/Documentation
Josh Triplett 6591b49387 tracing: Add vim script to enable folding for function_graph traces
function_graph traces look like nested function calls, complete with
braces denoting the start and end of functions.  function-graph-fold.vim
teaches vim how to fold these functions, to make it more convenient to
browse them.

To use, :source function-graph-fold.vim while viewing a function_graph
trace, or use "view -S function-graph-fold.vim some-trace" to load it
from the command-line together with a trace.  You can then use the usual
vim fold commands, such as "za", to open and close nested functions.
While closed, a fold will show the total time taken for a call, as would
normally appear on the line with the closing brace.  Folded functions
will not include finish_task_switch(), so folding should remain
relatively sane even through a context switch.

Note that this will almost certainly only work well with a single-CPU
trace (e.g. trace-cmd report --cpu 1).  It also takes some time to run
(a few seconds for a large trace on my laptop).  Nevertheless, I found
it very handy to get an overview of a trace and then drill down on
problematic calls.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
LKML-Reference: <20090806145701.GB7661@feather>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2009-08-26 00:32:04 -04:00
..
2009-08-01 10:24:35 +02:00
2008-10-30 11:38:45 -07:00
2009-04-07 08:12:38 +02:00
2007-07-19 10:04:47 -07:00
2008-02-14 00:16:13 -05:00
2008-10-16 11:21:30 -07:00
2009-06-22 10:12:35 +01:00
2009-07-30 13:10:50 -07:00
2009-06-16 19:47:58 -07:00
2008-02-03 15:54:28 +02:00
2009-03-30 15:21:59 +02:00
2009-06-11 01:58:01 -07:00
2009-06-20 01:10:38 -07:00
2008-01-11 18:22:30 -06:00
2007-05-09 08:57:56 +02:00
2009-06-16 14:30:14 -07:00
2008-10-30 11:38:45 -07:00
2009-06-18 13:04:04 -07:00
2009-06-30 18:56:00 -07:00
2008-04-29 02:49:47 -04:00
2006-11-30 04:58:40 +01:00
2008-12-03 16:09:53 -07:00
2008-07-25 10:53:30 -07:00
2008-11-12 17:17:18 -08:00
2007-10-19 11:53:34 -07:00
2008-11-14 10:39:26 +11:00
2009-03-26 15:45:43 -07:00
2006-11-30 04:58:40 +01:00
2009-06-30 18:55:59 -07:00
2008-03-24 19:22:19 -07:00
2007-10-18 14:37:32 -07:00
2008-02-06 10:41:09 -08:00
2008-10-20 15:43:10 +02:00
2009-04-27 12:00:27 -07:00
2009-04-27 12:00:27 -07:00
2008-08-12 16:07:30 -07:00
2009-03-31 15:18:37 +11:00
2008-11-12 17:17:17 -08:00
2006-06-27 17:32:47 -07:00
2008-02-06 10:41:14 -08:00
2009-04-14 09:00:23 +10:00