rust-lang/rust

Tracking issue for `-Z profile`

alexcrichton opened this issue ยท 11 comments

This is intended to be a tracking issue for the profiling feature, built on the gcov-style support in LLVM first added in #38608 and later rebased in #42433.

Triage: not aware of any major move to stabilize this.

Is it expected that this doesn't work with --release?

Is there a way to change the path that the tests output to? I want to use this on some code that is cross compiled and needs to run on a device that only has a few writable paths. I'm currently getting this to work by replacing /target/aarch64... with ./arget/aarch64... in the binary since we can't change the length of the string.

I've never worked on the compiler before, but an option for this would be very useful.

Aw, that's unfortunate.

As far as I understand there's no replacement?

was thinking this was for branch coverage, which has since been implemented

Oh. I missed that then!

@whitequark Yes, -Cinstrument-coverage should work and supports the llvm-cov style of handling coverage: https://doc.rust-lang.org/nightly/rustc/instrument-coverage.html

Oh that's fantastic work =^_^=