Porting flamegraph to Rust
https://www.youtube.com/watch?v=jTpK-bNZiA4
code: zsh
$ uname -r
5.0.21+
$ perf --help
コマンド 'perf' が見つかりません。次の方法でインストールできます:
sudo apt install linux-intel-iotg-5.15-tools-common # version 5.15.0-1010.14~20.04.1, or
sudo apt install linux-oem-5.6-tools-common # version 5.6.0-1017.17
sudo apt install linux-tools-common # version 5.4.0-124.140
sudo apt install linux-iot-tools-common # version 5.4.0-1001.3
code: zsh
$ sudo make
if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0)
^~~~~~~~~~~~~~~~~~~~~
code: zsh
apt-get install linux-tools-common linux-tools-generic linux-tools-uname -r
$ perf --version
perf version 5.4.195
code: zsh
$ perf script | ./stackcollapse-perf.pl > out.perf-folded
$ perl --version
This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux-gnu-thread-multi
(with 50 registered patches, see perl -V for more detail)
Copyright 1987-2019, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
$ ./flamegraph.pl out.perf-folded > perf.svg