unw_get_proc_name() can be a performance bottleneck

In previous post, I mentioned using libunwind to debug memory leak issue. Recently, when I revisited the demo program, I found unw_get_proc_name() can be a performance bottleneck. Below is a report from perf:

So if possible, you can consider post-processing the address to symbol name.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.