Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow stacktraces in large projects #323

Open
diehard2 opened this issue Dec 14, 2023 · 1 comment
Open

Slow stacktraces in large projects #323

diehard2 opened this issue Dec 14, 2023 · 1 comment

Comments

@diehard2
Copy link

Hi, really like this library a lot. I'm working off the latest commit. My project is fairly large although not excessive, the executable is 127 MB.

For BFD I'm seeing it take approximately 2.3 seconds to generate the stacktraces (no source printing). If I use dw I'm seeing 860 ms. It does not get faster on subsequent runs. For reference, an approach I have that calls out to addr2line takes about 500ms for the same stack.

If I use boost stacktrace (which I do not like as much) and use libbacktrace I am seeing 192 ms for the first call and sub ms for subsequent calls due to their caching.

Is there anything that can be done here? If it helps this is the flamegraph for bfd. The reason I am looking for performant stacktraces is I'm logging them whenever there is a failure in my service and processing then continues. Thanks for any help

image

@bombela
Copy link
Owner

bombela commented Dec 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants