<div>For the record, I've ran some measurements on Chromium (fetched random instruction addresses from binary and symbolized them with a tool):</div><div><br></div><div>chrome + "-gline-tables-only" (0.5G binary)</div>
<div>tool             # of addresses       time                memory</div><div>addr2line     1                          0m16.803s</div><div><div>symbolizer   1                          0m0.501s</div><div>addr2line     100<span class="Apple-tab-span" style="white-space:pre">   </span>                      0m22.474s</div>
<div>symbolizer   100                       0m1.417s</div><div>addr2line     10k                       1m45.055s     2.1G</div><div>symbolizer   10k                       1m23.271s     440 Mb</div><div><br></div><div>chrome + "-g" (2G binary):</div>
<div><div>addr2line     1                          0m36.101s</div><div><div>symbolizer   1                          0m10.101s</div><div>addr2line     100<span class="Apple-tab-span" style="white-space:pre">      </span>                      0m46.125s</div>
<div>symbolizer   100                       0m10.005s</div><div>addr2line     10k                       2m32.614s     9.2G </div><div>symbolizer   10k                       1m41.288s     3.9G</div></div></div><div><br></div>
</div><div><br><div class="gmail_quote">On Tue, Aug 21, 2012 at 7:34 PM, Alexey Samsonov <span dir="ltr"><<a href="mailto:samsonov@google.com" target="_blank">samsonov@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi!</div><div><br></div><div>This code contains a stand-alone file that makes use of existing LLVM libraries to symbolize instruction addresses of a module.</div><div>Though it looks like an another llvm tool, we can temporary keep it at //projects/compiler-rt (as currently we're the only interested users,</div>

<div>and we need to compile this tool for the same targets we build ASan/TSan for). This file may be run in a separate process, and</div><div>communicate with caller via stdin/stdout. The key differences from addr2line is that the tool is capable of symbolizing code from</div>

<div>different modules and is able to consult both symbol table and debug info for fetching function name (which would be helpful</div><div>if the binary is compiled with -gline-tables-only).</div><div><br></div><div>Code review: <a href="http://codereview.appspot.com/6465080/" target="_blank">http://codereview.appspot.com/6465080/</a></div>
<span class="HOEnZb"><font color="#888888">
<div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>
</div>