coverage: Add debugging flag -Zcoverage-options=no-mir-spans
When set, this flag skips the code that normally extracts coverage spans from MIR statements and terminators. That sometimes makes it easier to debug branch coverage and MC/DC coverage, because the coverage output is less noisy. For internal debugging only. If other code changes would make it hard to keep supporting this flag, remove it.
This commit is contained in:
parent
e23ae72ac7
commit
abc2c702af
10 changed files with 235 additions and 21 deletions
|
@ -761,7 +761,7 @@ fn test_unstable_options_tracking_hash() {
|
|||
})
|
||||
);
|
||||
tracked!(codegen_backend, Some("abc".to_string()));
|
||||
tracked!(coverage_options, CoverageOptions { level: CoverageLevel::Mcdc });
|
||||
tracked!(coverage_options, CoverageOptions { level: CoverageLevel::Mcdc, no_mir_spans: true });
|
||||
tracked!(crate_attr, vec!["abc".to_string()]);
|
||||
tracked!(cross_crate_inline_threshold, InliningThreshold::Always);
|
||||
tracked!(debug_info_for_profiling, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue