Display cumulative cycles in perf graph -


I want to see all of its clans using the fraction spent and the perf report in the function. That is, if I have something like this then

  void foo () {biz (); // 3,300 cycle falcon (); // 3,300 cycles // ... 100 cycles) int main () {foo (); times (); // 3,300 cycle back 0; }  

and bar , baz , and biz function to 3,300 cycles each, Foo itself takes only 100 cycles, so I would like to see a graph like this:

  Main 100% | + --- Efu 67.0% (1.0%) | | | + --- Biz 33.0% | + --- Falcon 33.0% | + + 33.0% of the time  

You must record data with option -g debug information Collect (with command help: "call-graph (stack chain / backtas) recording").

Then, to show the callgraph in the expected form, add the option --stdio, add options flat but hierarchical output, otherwise you will enter an interactive nurse mode.


Comments