Messages in this thread | | | Date | Fri, 23 Mar 2012 09:47:12 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH] perf: mmap_page capabilities and docs |
| |
* Peter Zijlstra <peterz@infradead.org> wrote:
> Usage: > > gcc -finstrument-functions -o my_prog main.c > LD_PRELOAD=profviz.so ./my_prog > > xdot prof.dot > or > dot -Tsvg prof.svg prof.dot > > The attached prof.svg it example output of: > > LD_PRELOAD=./profviz.so ./perf report
Nifty. Could we integrate this into 'perf profviz <myprog>' or so [feel free to use a better sub-tool name - 'perf selfprof' ?] and thus make it available to mere mortals as well?
'perf selfprof' could also warn about apps that were not built with -finstrument-functions.
Thanks,
Ingo
| |