From: Richard W.M. Jones Date: Thu, 23 Feb 2023 13:13:30 +0000 (+0000) Subject: 2023 talk about flamegraphs X-Git-Url: http://git.annexia.org/?p=libguestfs-talks.git;a=commitdiff_plain;h=6f9c7f844577696329ddadd086709cf21b5d3730;hp=65b3746ea784e2a089b992d6fe234fa232e25b24 2023 talk about flamegraphs --- diff --git a/2023-flamegraphs/1000-title.html b/2023-flamegraphs/1000-title.html new file mode 100644 index 0000000..b1e1e75 --- /dev/null +++ b/2023-flamegraphs/1000-title.html @@ -0,0 +1,19 @@ + + + + +
+

+ Fedora 38 and Flamegraphs +

+ +

+ Richard W.M. Jones (rjones @ redhat.com)
+ Wednesday March 8th, 2023 +

+ +

+ Easy performance analysis of the whole system using + perf and flamegraphs +

+
diff --git a/2023-flamegraphs/2000-fno-omit-frame-pointer.html b/2023-flamegraphs/2000-fno-omit-frame-pointer.html new file mode 100644 index 0000000..63ffb33 --- /dev/null +++ b/2023-flamegraphs/2000-fno-omit-frame-pointer.html @@ -0,0 +1,14 @@ + + + + +

Fedora 38 has frame pointers

+ +

+-fno-omit-frame-pointer +

+ +

+https://rwmj.wordpress.com/2023/02/14/frame-pointers-vs-dwarf-my-verdict/
Frame pointers vs DWARF – my verdict +

+ diff --git a/2023-flamegraphs/2100-perf.html b/2023-flamegraphs/2100-perf.html new file mode 100644 index 0000000..403a7aa --- /dev/null +++ b/2023-flamegraphs/2100-perf.html @@ -0,0 +1,31 @@ + + + + + + +

Whole system performance analysis

+ +
+sudo perf record -a -g -- \
+     nbdkit -U - null 1G --run 'export uri; fio nbd.fio'
+
+ +

+-a → record the whole system +

+ +

+-g → use frame pointers +

diff --git a/2023-flamegraphs/2200-produce-svg.html b/2023-flamegraphs/2200-produce-svg.html new file mode 100644 index 0000000..54ffb94 --- /dev/null +++ b/2023-flamegraphs/2200-produce-svg.html @@ -0,0 +1,9 @@ + + + + +

perf data to flamegraph SVG

+ +
+flamegraph > analysis.svg
+
diff --git a/2023-flamegraphs/2250-produce-svg.html b/2023-flamegraphs/2250-produce-svg.html new file mode 100644 index 0000000..7498e36 --- /dev/null +++ b/2023-flamegraphs/2250-produce-svg.html @@ -0,0 +1,42 @@ + + + + + + +

perf data to flamegraph SVG

+ +
+flamegraph1 > analysis.svg
+
+ + + +
+

1flamegraph is this script, using the tools +from https://github.com/brendangregg/FlameGraph

+
+set -e
+
+d="$HOME/devel/FlameGraph"
+
+sudo perf script |
+    $d/stackcollapse-perf.pl --all |
+    $d/flamegraph.pl
+
+
diff --git a/2023-flamegraphs/3000-a-flamegraph.html b/2023-flamegraphs/3000-a-flamegraph.html new file mode 100644 index 0000000..5444f94 --- /dev/null +++ b/2023-flamegraphs/3000-a-flamegraph.html @@ -0,0 +1,8 @@ + + + + +

A flamegraph

+ +