Page MenuHomeFreeBSD

lang/rust-nightly: enable the Rust profiler
ClosedPublic

Authored by asomers on May 8 2020, 5:58 PM.
Tags
None
Referenced Files
F160708917: D24765.diff
Sat, Jun 27, 1:04 AM
F160693279: D24765.id.diff
Fri, Jun 26, 8:54 PM
Unknown Object (File)
Wed, Jun 24, 8:57 AM
Unknown Object (File)
Sun, Jun 21, 8:19 PM
Unknown Object (File)
Sat, Jun 20, 9:48 AM
Unknown Object (File)
Sat, Jun 13, 8:31 PM
Unknown Object (File)
May 6 2026, 10:35 PM
Unknown Object (File)
May 2 2026, 12:26 PM
Subscribers

Details

Summary

lang/rust-nightly: enable the Rust profiler

Enable the rust profiler on rust-nightly (as an unstable feature, it's not
allowed on the stable toolchain). This allows it to generate code coverage
reports.

https://doc.rust-lang.org/unstable-book/compiler-flags/profile.html
https://crates.io/crates/grcov

Test Plan

Built and tested a few crates on amd64 12.1-RELEASE

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tobik added a subscriber: tobik.

Ok but please fix the nit below before commit.

lang/rust/Makefile
136 ↗(On Diff #71557)
.if defined(NIGHTLY_DATE)

like above

This revision is now accepted and ready to land.May 18 2020, 5:58 PM
This revision was automatically updated to reflect the committed changes.