2023 talk about flamegraphs
[libguestfs-talks.git] / 2023-flamegraphs / 3700-sleeptest.html
diff --git a/2023-flamegraphs/3700-sleeptest.html b/2023-flamegraphs/3700-sleeptest.html
new file mode 100644 (file)
index 0000000..5c7cc4b
--- /dev/null
@@ -0,0 +1,19 @@
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<link rel="stylesheet" href="style.css" type="text/css"/>
+<script src="code.js" type="text/javascript"></script>
+
+<h1>sleeptest.c</h1>
+
+<pre>
+int
+main (void)
+{
+  int i;
+
+  for (i = 0; i < 5; ++i) {
+    <b>busywork_2secs ();</b>
+    <b>sleep (6);</b>
+  }
+  return 0;
+}
+</pre>