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

Fork backtrace-rs and modify MAPPINGS_CACHE_SIZE to 10 #184

Open
hehechen opened this issue Dec 8, 2022 · 0 comments
Open

Fork backtrace-rs and modify MAPPINGS_CACHE_SIZE to 10 #184

hehechen opened this issue Dec 8, 2022 · 0 comments

Comments

@hehechen
Copy link

hehechen commented Dec 8, 2022

The overhead of dwarf resolving symbol is larger than that of frame pointer.
The root cause is that the backtrace of DWARF is deeper than that of frame pointer. So DWARF need to resolve more shared libraries when resolving symbols. But the capacity of lib cache in backtrace-rs is only 4, so cache miss will occurs frequently in DWARF scenarios.
I created a PR to make MAPPINGS_CACHE_SIZE configurable , but it has not been discussed and merged. I think we can fork backtrace-rs and modify MAPPINGS_CACHE_SIZE to 10.

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

Successfully merging a pull request may close this issue.

1 participant