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.