-
Notifications
You must be signed in to change notification settings - Fork 252
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
Lazy backtrace #30
Comments
Seems plausible! |
Well, |
Seems fine |
Yeah, it may be worth to add it. With https://play.rust-lang.org/?gist=6557542b1c00bce1c6528b7daccee877&version=stable&backtrace=1, |
rust-lang-deprecated/error-chain#129 (comment) If @mitsuhiko is right that CoreSymbolication is especially slow at the rendering phase (and I am understanding correctly that "Lazy" here means that it collects the required info but lazily resolves it when the actual backtrace is needed...), this could lead to tremendous speedups on Mac. |
I was just hit by this -- I had to resort to rust-lang/miri#283 to fix this. Unfortunately, this means we have to use the low-level APIs ( |
Agreed! This is unfortunately, however, not possible due to how some platform apis are implemented. |
Do you think it would be feasible to add some kind of
LazyBacktrace
? Instead of calling trace then resolve, it would only call trace, then have afn resolve() -> Backtrace
. Alternatively, it could be an enum withBacktrace
andVec<Frame::ip>
as variants.I came on this idea by thinking about rust-lang-deprecated/error-chain#129 (comment).
The text was updated successfully, but these errors were encountered: