Rust Profiling In Red Hat Enterprise Linux 9.3 And 8.9
Red Hat News, Friday, September 22,2023
Coming soon in Red Hat Enterprise Linux 9.3 and 8.9-and already in CentOS Stream 9 and 8-we're updating the rust-toolset package to Rust 1.71.1. This comes with many upstream features, like the new OnceLock API and Cargo's new "sparse" protocol, but an additional change we're making to our packaging is to include the profiler runtime with the Rust standard library.
This has no impact on the default Rust compilation workflow, but it does enable two new capabilities: source-based code coverage and profile-guided optimization.
In this blog, I'll explain how to use code coverage and profile-guided optimization with Rust code on Red Hat Enterprise Linux.