Proposal
There is an unstable -Zprofile flag that enables “gcov-style” coverage instrumentation.
(The profile flag predates and is separate from the stable -Cinstrument-coverage flag.)
Notably, the -Zprofile flag:
- Is largely untested in-tree, having only one run-make test that does not check whether its output is correct or useful.
- Has no known maintainer.
- Has seen no push towards stabilization.
- Has at least one severe regression reported in 2022 that apparently remains unaddressed.
- Is confusingly named, since it appears to be more about coverage than performance profiling, and has nothing to do with PGO.
- Is fundamentally limited by relying on counters auto-inserted by LLVM, with no knowledge of Rust beyond debuginfo.
I propose to remove this unstable flag (and its accompanying -Zprofile-emit), implemented at:
Mentors or Reviewers
—
Process
The main points of the Major Change Process are as follows:
You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
Proposal
There is an unstable
-Zprofileflag that enables “gcov-style” coverage instrumentation.-Z profilerust#42524(The profile flag predates and is separate from the stable
-Cinstrument-coverageflag.)Notably, the
-Zprofileflag:-Zprofile) at some point afternightly-2021-11-11rust#100125I propose to remove this unstable flag (and its accompanying
-Zprofile-emit), implemented at:-Zprofile(gcov-style coverage instrumentation) rust#131829.Mentors or Reviewers
—
Process
The main points of the Major Change Process are as follows:
@rustbot second.-C flag, then full team check-off is required.@rfcbot fcp mergeon either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.