Page MenuHomeFreeBSD

lang/rust-nightly: enable the Rust profiler
ClosedPublic

Authored by asomers on May 8 2020, 5:58 PM.
Tags
None
Referenced Files
F122392553: D24765.id71557.diff
Fri, Jul 4, 11:00 PM
Unknown Object (File)
Sun, Jun 22, 7:15 PM
Unknown Object (File)
Sun, Jun 22, 5:06 AM
Unknown Object (File)
Fri, Jun 20, 7:44 PM
Unknown Object (File)
Sat, Jun 14, 2:04 PM
Unknown Object (File)
Thu, Jun 12, 5:53 PM
Unknown Object (File)
Jun 4 2025, 3:28 AM
Unknown Object (File)
Jun 1 2025, 11:44 AM
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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 30983
Build 28690: arc lint + arc unit

Event Timeline

tobik added a subscriber: tobik.

Ok but please fix the nit below before commit.

lang/rust/Makefile
136
.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.