-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Make 'profile' a stable option #44673
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
Just my opinion: Could we name it |
Thanks for the PR @marco-c! I'm realizing now that our documentation doesn't quite indicate this, but in general when we stabilize new features like this we require sign-off from the relevant subteam on the tracking issue beforehand. The issue here #42524, is tagged as |
I think this should be generalised a bit before stabilising and I like @kennytm's suggestion. @marco-c does that sound like a good idea to you? Do I understand correctly that this is a feature where we depend entirely on LLVM for support? Are there stability worries there? (I.e., what happens if LLVM changes the output format or drops support altogether?) Beyond these concerns, I think it is a good idea to stabilise this in some form. Let's start FCP now, but block on addressing those concerns. @rfcbot fcp merge |
@rfcbot concern documentation We think this feature needs better documentation before it can be stabilised |
After some more discussion, the dev-tools team thought this is probably not yet ready for stabilisation. We want to be in a place where coverage tools are working solidly with Rust code and are themselves getting some usage before we stabilise features which they depend on. I think the best thing to do is to close this PR for now, and move discussion to the tracking issue (#42524). @marco-c thanks for sending this PR and hopefully we can get some experience with coverage tools and then start the stabilisation process |
OK. We are probably going to use this feature in Firefox automation with custom builds, so hopefully we will collect a lot of experience during the next few weeks. |
@nrc It is not working well due to limitation of the GCOV format, debug info and how LLVM implements the pass, e.g.
I think LLVM's source-based coverage |
Fixes #42524
I'm not sure where https://github.com/rust-lang/rust/blob/master/src/doc/unstable-book/src/compiler-flags/profile.md should be moved.