virt-v2v 2024: Replace pull quote images
[libguestfs-talks.git] / 2023-flamegraphs / 2100-perf.html
1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
2 <link rel="stylesheet" href="style.css" type="text/css"/>
3 <script src="code.js" type="text/javascript"></script>
4
5 <script>
6 function highlight(id1, id2)
7 {
8   document.getElementById(id1).style.backgroundColor="yellow";
9   document.getElementById(id2).style.backgroundColor="yellow";
10 }
11 function bye(id1, id2)
12 {
13   document.getElementById(id1).style.backgroundColor="white";
14   document.getElementById(id2).style.backgroundColor="white";
15 }
16 </script>
17
18 <h1>Whole system performance analysis</h1>
19
20 <pre>
21 sudo perf record <span id="span_a" onmouseover="highlight(this.id, 'para_a')" onmouseout="bye(this.id, 'para_a')">-a</span> <span id="span_g" onmouseover="highlight(this.id, 'para_g')" onmouseout="bye(this.id, 'para_g')">-g</span> -- \
22      nbdkit -U - null 1G --run 'export uri; fio nbd.fio'
23 </pre>
24
25 <p id="para_a">
26 -a &rarr; record the whole system
27 </p>
28
29 <p id="para_g">
30 -g &rarr; use frame pointers
31 </p>