<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I've been doing profiling on the static analyzer for a while, but
Linux's perf is pretty difficult to get a mental grasp on. Enter
FlameGraph (<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/brendangregg/FlameGraph">https://github.com/brendangregg/FlameGraph</a>)
as a great way to visualize Linux's perf (and other profiler) data.
In case it isn't clear, I didn't write this tool, I just used it.
<div class="moz-forward-container">
<p>Here's a PNG of an analysis run. Normally a neat interactive
SVG comes out the tool, but a 1MB attachment seems like a bad
idea.</p>
<p><img src="cid:part2.45E1547F.02D33597@codeaurora.org" alt=""></p>
<br>
Now here's the same run, but only showing call stacks that involve
calls to functions named removeDead*.<br>
<img src="cid:part3.A364B072.7FD5EE7D@codeaurora.org" alt=""><br>
<br>
I think the useful thing to get out of these pictures (and the
captions underneath) is that 40% of the cpu time is spent on
callstacks involving "removeDead".<br>
<pre class="moz-signature" cols="72">
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
</pre>
</div>
</body>
</html>