Re: [PATCH] perf script: Add --inline option
From: Milian Wolff
Date: Tue May 16 2017 - 15:02:24 EST
On Donnerstag, 11. Mai 2017 01:58:38 CEST Namhyung Kim wrote:
> The --inline option is to show inlined functions in callchains.
>
> For example,
>
> $ perf script
> a.out 5644 11611.467597: 309961 cycles:u:
> 790 main (/home/namhyung/tmp/perf/a.out)
> 20511 __libc_start_main (/usr/lib/libc-2.25.so)
> 8ba _start (/home/namhyung/tmp/perf/a.out)
> ...
>
> $ perf script --inline
> a.out 5644 11611.467597: 309961 cycles:u:
> 790 main (/home/namhyung/tmp/perf/a.out)
>
> std::__detail::_Adaptor<std::linear_congruential_engine<unsigned long,
> 16807ul, 0ul, 2147483647ul>, double>::operator()
> std::uniform_real_distribution<double>::operator()<std::linear_congruential
> _engine<unsigned long, 16807ul, 0ul, 2147483647ul> >
> std::uniform_real_distribution<double>::operator()<std::linear_congruential
> _engine<unsigned long, 16807ul, 0ul, 2147483647ul> > main
> 20511 __libc_start_main (/usr/lib/libc-2.25.so)
> 8ba _start (/home/namhyung/tmp/perf/a.out)
> ...
>
> Cc: Jin Yao <yao.jin@xxxxxxxxxxxxxxx>
> Cc: Milian Wolff <milian.wolff@xxxxxxxx>
Acked, tested and reviewed by me, too.
Thanks a lot!
--
Milian Wolff | milian.wolff@xxxxxxxx | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt ExpertsAttachment:
smime.p7s
Description: S/MIME cryptographic signature